how hard would this be?

crackhead

Newbie
Joined
Nov 25, 2004
Messages
2,148
Reaction score
0
how hard would it be to make it so that the player character can pick up a npc that it has killed and take it to an alley way to hide it so that it isn seen by the enemy. would this need to be coded or what because i have no idea how i could include this in my mod.
 
It would need to be coded.

To be honest, it'd be pretty easy, although it'd likely lag your computer to some extent (unless you're not planning on having many NPCs per map).
All you'd need to do is:

Create a server-side ragdoll on an NPC's death, instead of clientside.
Change the "pick-up" code to recognise the corpses as graspable.

Pretty simple, if you ask me. Just don't do it in multiplayer, otherwise everyone will have a ping hit whenever someone dies.

-Angry Lawyer
 
oh right cool thing is i plan on it being 3rd person perspective unless your zoomed in on a sniper riffle. so how could i make it so that it actualy looks like your holding a body?
 
With some pretty nifty animating, which is outside my field of "How to do crap".

-Angry Lawyer
 
i just had a revalation. it could pressumeably be done by having the corpse as a world model ragdoll as you said and then have an animation in the player character for it with an attachment beeing the world model of the corpse. and then a bit of coding to make it work.
 
doesnt the combine soldier have an animation that is exactly that
couldn't you locate that code file or import those animations onto your character
 
i wasnt aware of that animation but ill have a look when i get to that.
 
Back
Top