Thats not sarcasm at all, [edit]Updated cog[/edit]
------------------
The Sniper Missions. Current project, The Sniper Missions
The Magician Saber System.
[This message has been edited by Descent_pilot (edited May 25, 2003).]
Code:
# Jedi Knight Cog Script # # CAPTURE.COG # # Testing the capture stuff # # [DP] # symbols thing capThing keyframe capture keyframe kycapture=kycapture.key local int captured=0 local thing dummy local int player local ai captureAI=capture.ai local template ghost=+capture local message startup message pulse end # ======================================================================================== code Startup: player = GetLocalPlayerThing(); AISetClass(capThing, captureAI); SetPulse(0.05); Return; # ........................................................................................ Pulse: If(VectorDist(GetThingPos(capThing), GetThingPos(player)) > .25) Return; captured = 1; SetCollideType(capThing, 0); PlayKey(capThing, capture, 2, 0x0); PlayKey(player, kycapture, 2, 0x0); dummy = FireProjectile(player, ghost, -1, -1, '0.005 0.02 0', '0 0 0', 0,0,0,0); TeleportThing(capThing, dummy); SetThingLook(capThing, GetThingLvec(dummy)); DestroyThing(dummy); Return; end
------------------
The Sniper Missions. Current project, The Sniper Missions
The Magician Saber System.
[This message has been edited by Descent_pilot (edited May 25, 2003).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms
Completed
Judgement Day (HLP), My level pack
SATNRT, JK Pistol Mod, Aliens TC, Firearms
Completed
Judgement Day (HLP), My level pack