Code:
# Jones 3D Cog Script # # actor_IndyJeep.cog # # [RT] [MDR] # # Indy's script while driving the jeep. # # (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved # # =================================================================== symbols message startup message user0 message user1 message boarded message killed message timer message pulse # ************************** DEATH VARS ***************************** template tpl_explosion=+jeep_exp_blast local template tpl_wreckjeep=wreckjeep local template tpl_ghost=ghost local template sparks=paddlesplash local # for tire dust # ************************ MISC LOCAL VARS ************************** thing indy local thing t_WreckedJeep local thing t_Ghost local vector v_Vel local end # =================================================================== code startup: indy = GetLocalPlayerThing(); return; # ------------------------------------------------------------------- user0: StartCutScene(2); return; # ------------------------------------------------------------------- user1: EndCutScene(); return; # ------------------------------------------------------------------- boarded: CopyPlayerHolsters(GetSourceRef(), GetSenderRef()); return; # ------------------------------------------------------------------- killed: # If not death by poison then blow up the jeep if (!BITTEST(GetParam(1), 0x100)) { CreateThing(tpl_explosion, GetLocalPlayerThing()); SetTimer(0.4); SetPulse(0.15); } return; # ------------------------------------------------------------------- timer: CreateThing(tpl_explosion, GetLocalPlayerThing()); t_WreckedJeep = CreateThing(tpl_wreckjeep, GetLocalPlayerThing()); v_Vel = GetThingVel(GetLocalPlayerThing()); SetThingVel(t_WreckedJeep, v_Vel); SetThingFlags(GetLocalPlayerThing(), 0x80000); SetPulse(0.0); return; # ------------------------------------------------------------------- pulse: CreateThing(tpl_explosion, GetLocalPlayerThing()); return; end
This cog, in case you didn't notice is from Indiana Jones and the Infernal Machine. I extracted it using ConMan. I don't know the exact legal impliactions, but I assume it's ok to look at it. >.> <.<
Anyway, I was wondering if someone could make something of this (someone who knows cog, unlike me) and perhaps even base their own version for JK/MotS off of this. I know IM probably has a lot of cog variable unfamiliar and new to JK, but they are still more or less the same game. It seems to me that the character model temporarily ceases to exist, and a new 3do is created after the animation of the player stepping into the vehicle is played. The jeep or vehicle or whatever, is essentially a wlakplayer which doesn't have animated legs, makes a different noise when running on surfaces, and has osme altered physics, as well as the inability to jump or swim. Otherwise, the two seems the same. I'm sure someone could tell me if I'm even on the right track here, and even more importantly, can anyone create a cog for JK based off of this? THat would be sweet!