Author Topic: Player Knockback  (Read 822 times)

I'm making a player-type that is knocked backwards when shot.  I already have the stats for the player (health, movement, jump, etc.)  But I don't know how to make it detect a projectile hitting it and being knocked backwards (or as I should say, velocity in the opposite direction.)

Any ideas?

Edit: 18 views and no replies.

I know how to make it detect damage, but dunno how to make it get moved backwards.
« Last Edit: August 03, 2010, 12:12:54 AM by brickybob »

Look for a weapon with hitboxes.cs and copy paste that into your playertype folder first off, then maybe a in headnode hit or bodynode. I'm not good with that stuff I just code weapons.

Look for a weapon with hitboxes.cs and copy paste that into your playertype folder first off, then maybe a in headnode hit or bodynode. I'm not good with that stuff I just code weapons.
What weapons have hitboxes.cs?

Ssg550 sniper I think. Just search headshot.

Ssg550 sniper I think. Just search headshot.
I can't find it.  Search only finds this topic.