Bobbing?

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

Moderator: Moderators

Post Reply
predalien
Private
Posts: 5
Joined: Wed Apr 13, 2005 7:52 pm

Bobbing?

Post by predalien »

how do i make objects bob? like in water?
Grassy
First Lieutenant
Posts: 221
Joined: Sun Aug 22, 2004 11:36 am

Post by Grassy »

The only thing I can think of is make them script_objects, give them targetnames and do it via the script.

This might work,
//call the thread like so

$object1 thread bob
$object2 thread bob

//etc etc

//-------
bob:
//-------
//each instance of this thread will make the objects
//bob up and down with small pauses with random movement distance

while(1) {

//play with these numbers for best effects
local.dist = (randomint (10)+5)
local.pause = (randomfloat 3)
local.wait = (randomint(3)+1)

self moveup local.dist
self waitmove
wait local.pause
self movedown local.dist
self waitmove
wait local.wait
}
end

Grassy
An ambiguous question will get a similar answer...
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

I think you should try messing around with func_sinkobject.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

rings

Post by tltrude »

Makes you wonder how splash rings (bullet hits) float on a moving surface. "MoveOffset" works for script_objects, but I'm not sure how you set the offset vector to start with.

moveOffset - Move the position by the offset vector.
Tom Trude,

Image
Post Reply