Massassi Forums Logo

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.

ForumsCog Forum → Bounce Cog
Bounce Cog
2001-10-20, 12:30 PM #1
can somone give me the script for the bounce cog from Morpheus? Or if you cant, i need either a troop transport mover cog and a walk upsidedown cog.
2001-10-21, 12:40 AM #2
Here is a jump pad cog...
Code:
# Jedi Knight Cog Script
#
# CDjumppad.COG
#
# 
# 
#
# [Cave_Demon]
#
# This cog is NOT supported by lucasarts

flags=0x240

symbols

vector		playerVec               local
vector		resVec                  local
float		x
float		y
float		z
surface		jumppad                 mask=0x404
thing		player                  local

sound		bounche=

message		touched		
message		entered

end            

# ========================================================================================

code


# ........................................................................................

touched:
entered:
   player = GetSourceRef();
   
   DetachThing(player);

   playerVec = GetThingVel(player);
   playerVec = VectorSet(VectorX(playerVec), VectorY(playerVec), 0);

   resVec = VectorAdd(playerVec, VectorSet(x, y, z));

   SetThingVel(player, resVec);
   dummy = PlaySoundThing(bounche, player, 1.0, -1, -1, 0x180);
   
   Return;

end

My version...

------------------
Guns don't kill people. Kids who play computer games do.
[edit: Visit Cave_Demon's site: http://cave2.2ya.com ! -stat]
[This message has been hacked by StaticX (edited September 11, 2001).]
WHAT?

↑ Up to the top!