I was writing a send trigger cog for my patch. Anyway, I created a new template. And as you all know, new templates need SendTrigger messages in a separate cog. Well this cog was supposed to make the template and attach it to the player. I've narrowed it down to this cog. I know it's this cog but I'm not sure how to fix it. It makes the template stick to you on some levels such as Canyon Oasis. But for some levels I've tested it on like level 13 in JK. Or Boc's level. Anyway the template is generated but you can walk out of it. Is it not sticky enough? Any ideas. I'm suffering head trama from bashing my head against the keyboard so many times so please help. Thanks guys. Here's the cog.
Code:
# Jedi Knight Cog Script # # Client_Persuasion.COG # # # # # This Cog is Not supported by LucasArts Entertainment Co # This flag makes the cog act locally, no broadcasting, less lag. flags=0x404 symbols flex autoAimFOV=30 local flex autoAimMaxDist=5 local template sphere_tpl=+f_quicksilver local template quicksilver=+quicksilver local message trigger end # ======================================================================================== code trigger: if (GetSourceRef() == 290) { sphere = FireProjectile(GetParam(0), sphere_tpl, -1, -8, '0.0 0.0 0.0', '0 0 0', 1.0, 0x30, 0, 2); AttachThingToThingEx(sphere, player, 0x8); } else if(GetSourceRef() == 291) { qs = FireProjectile(GetParam(0), quicksilver, -1, -8, '0.0 0.0 0.0', GetParam(1), 1.0, 0x30, 0, 2); AttachThingToThingEx(qs, player, 0x8); } return; end
Ohh Crap! - Darien Fawkes (The Invisible Man)