Boat/floating?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Snake
Corporal
Posts: 43
Joined: Sun Mar 02, 2003 3:16 pm

Boat/floating?

Post by Snake »

I made a little boat but, how can i let it floating on the water with some movements?

Thanks,
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

If it is a script_model, you can use the rotateX / Y / Z commands... it does involve quite some scripting though, but you can do that ;)
Image
vonderbakluft
Corporal
Posts: 46
Joined: Fri Aug 01, 2003 11:15 am
Location: NL
Contact:

Post by vonderbakluft »

Isn't hard.

Make the boat in your map a script_object (all parts in once and preferrable with a origin textured brush on the spot that assumes to be the center). Call it targetname/myboat

Next script after 'level waittill spawn' in your main:

$myboat thread boat

and after your main:


//**********boat animation to rock the boat*************
boat:
while (1)
{
self time 4
self rotateyup 4
self rotatezup 4
self rotatexdown 2
self waitmove
self time 4
self rotateydown 4
self rotatezdown 4
self rotatexup 2
self waitmove
self time 4
self rotateydown 4
self rotatezdown 4
self rotatexup 3
self waitmove
self time 4
self rotateyup 4
self rotatezup 4
self rotatexdown 3
self waitmove
}
end


That's how we did it in Alsace Adjust the numbers as you like
Von
Real mappers map in wordpad ;-)
Post Reply