AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   making a non-solid entity (player) shootable? (https://forums.alliedmods.net/showthread.php?t=128904)

HLM 06-06-2010 17:02

making a non-solid entity (player) shootable?
 
how would I do this? the blood affect is optional, explosion events do damage, but weapondamage (weapons that fire bullets, lol) does nothing, so how can I do this, this is for my TFC anti-realism plugin im making, basically right now im working on the spy, when the spy is feigning (appears dead) I am trying to set him to not-solid (so you cant tel hes there) and make him not-bleed, I have attempted to do both, making him solid_not when hes feigned is working, but the bleeding part isnt working out, but beyond that, he cant be shot at by non-explosive weapons, it will result in shoot-throughs, how would I go about fixing this? semi-clip methods will only work to some extent, because playerA can be walked on by playerB in the game, therefore, playerB can attack PlayerA while standing on PlayerA.

EDIT: im going to test something as posted here

but I dont understand it completely, how do I hook a pre and post traceline?

Brreaker 06-08-2010 01:04

Re: making a non-solid entity (player) shootable?
 
PHP Code:

register_forward(FM_TraceLine"traceline_forward"// pre 

PHP Code:

register_forward(FM_TraceLine"traceline_forward"1// post 



All times are GMT -4. The time now is 05:24.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.