I want to put jump pads in my multiplayer level like the ones in Quake 3 Arena and in Unreal Tournament. Does anyone know of any cogs that would allow this, since I have no clue on how to create one that will?
This is the static archive of the Massassi Forums. The forums are
closed indefinitely. Thanks for all the memories!
You can also download
Super Old Archived Message Boards
from when Massassi first started.
"View" counts are as of the day the forums were archived, and will no longer increase.
symbols thing pad vector direction flex speed message touched end code touched: if(GetSenderRef() != pad) Return; ApplyForce(GetSourceRef(), VectorScale(direction, speed)); Return; end
symbols
message entered
surface stepon
vector direction
end
#
code
entered:
if(GetSenderRef()!=stepon) return;
DetachThing(GetSourceRef());
SetThingVel(GetSourceRef(),direction);
return;
end# Jump Pad
#
# By Edward
symbols
message startup
message entered
message timer
surface stepon
vector direction
sound bounce
end
#
code
startup:
SetWallCel(stepon,0);
return;
entered:
if(GetSenderRef()!=stepon) return;
DetachThing(GetSourceRef());
PlaySoundPos(bounce,GetSurfaceCenter(stepon),1,0,10,0x0);
SurfaceAnim(stepon,16,0x0);
SetThingVel(GetSourceRef(),direction);
SetTimer(1);
return;
timer:
SetWallCel(stepon,0);
return;
end![http://forums.massassi.net/html/tongue.gif [http://forums.massassi.net/html/tongue.gif]](http://forums.massassi.net/html/tongue.gif)