custom script mover orientation


(mrfin) #1

Hello mapping types

ok…I’ve made my custom script mover (train) from brushes and patches in radient and it looks the part.
To make it work I’ve duplicated it and added a model2 key for tag purposes, attached the two together and lo and behold it works!..sort of

Thing is I can’t find the right combination of faceangle (in script) and brush orientation (in map) to get the two movers to face the same way in game.

Do tags have a default direction/orientation?
Do the mover origin brushes also have this?

Whatever the combination is finding it is giving me a headache.
Can anyone help? …
help/ideas much appreciated


(Shaderman) #2

Do tags have a default direction/orientation?

I think so. http://www.paposo.com/tagstut/Tags1.htm


(Chruker) #3

The brushes you have assigned to the script_mover must be facing east in the editor. In addition all script_movers and entities must have an angle of 0 (which is east in the editor).

Now that everything you want to move, rotate and etc. is facing east, you use scriptcommands to rotate/point/move the object.

In the game the orientation of your object, is calculated using this kind of formula:
Orientation in editor + Orientation from splinepoint + Faceangles


(mrfin) #4

Thanks both

I’ll give it a look soon and let you know how I get on - time to work on this is limited for me at the moment…

Thanks again

[/quote]


(mrfin) #5

:banghead:


(mrfin) #6

ok…

If I was to send the neccessary files to someone that knows their way about, could that someone take a look at this and proove to me that all isn’t as hopeless as it seems presently.
I’m just going in circles - 90 degress at a time! :???:


(Chruker) #7

I could take a look at them, just PM me a place where I can download it.


(Chruker) #8

I see we have already talked before :wink:

http://www.splashdamage.com/index.php?name=pnPHPbb2&file=viewtopic&p=89638&highlight=#89638

Have you seen that reply?


(mrfin) #9

ooops…sorry Chruker
I didn’t see the previous reply…
Looks good…I’ll take a look at it tomorrow


(mrfin) #10

ok Thanks Chruker

The invisible train ‘train’ was always the wrongway around. It was hidden in those boxes, the boxes were there to remind me of brush orientation in the map when I was in the game. - or something… :???:

Anyhow…theyve gone now and at last I’ve got the orientation of both movers sorted out. :cool: I attached some tags and it all hangs together.

Orienting the movers was a bugger…thanks again

Now I have to sort out the script

:beer: cheers!