I'd like to create the effect of someone getting the snot smacked out of them by increasing the player's velocity, attaching a projectile to that player, and once that projectile hits the victim, it sends them hurling. However, my projectile doesn't want to explode when attached. Here's the template:
and the cog made after all else failed:
I've tried lots of different things, this is the best that I could come up with, but it's got it's flaws. =\
Heck, I'm not even so sure what the cog does it's been so long since I've messed with it. I'd like to forgo the use of any cog if at all possible. It's all in the template, cuz it worked perfectly the way I wanted to (staying in it's position relative to the player) but it just wouldn't explode.
[This message has been edited by Hell Raiser (edited December 02, 2002).]
Code:
+meleehit none type=explosion timer=0.001 soundclass=exp_punch.snd typeflags=0x0 +flykick none type=weapon model3d=dflt.3do orient=(0/0/0) size=0.1 movesize=0.1 thingflags=0x400 damageclass=0x1 typeflags=0xd collide=1 move=physics explode=+meleehit fleshhit=+meleehit damage=20 cog=melee_flykick.cog
and the cog made after all else failed:
Code:
# Jedi Knight Cog Script # # melee_flykick.cog # # Yes, I type that in every cog, wuahaha # # Created by: Hell Raiser [Jon Harmon] symbols message created message pulse message removed end code created: //SetThingPulse(GetSenderRef(), 0.01); AttachThingToThingEx(GetSenderRef(), GetThingParent(GetSenderRef()), 0x4); return; pulse: //SetThingLook( SetThingVel(GetSenderRef(), VectorScale(GetThingVel(GetThingParent(GetSenderRef())),1)); //TeleportThing(GetSenderRef(), GetThingParent(GetSenderRef())); return; removed: Print("Owie!"); return; end
I've tried lots of different things, this is the best that I could come up with, but it's got it's flaws. =\
Heck, I'm not even so sure what the cog does it's been so long since I've messed with it. I'd like to forgo the use of any cog if at all possible. It's all in the template, cuz it worked perfectly the way I wanted to (staying in it's position relative to the player) but it just wouldn't explode.
[This message has been edited by Hell Raiser (edited December 02, 2002).]
-Hell Raiser