AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Possible to block knife/HE damage like traceline? (https://forums.alliedmods.net/showthread.php?t=29836)

Geesu 06-13-2006 18:08

Possible to block knife/HE damage like traceline?
 
You can use traceline to block damage done by shooting, is there something similar to block grenade damage or knife damage?

Thanks,
Josh

Orangutanz 06-13-2006 20:51

For the knife, try maniplating this in TraceLine: TR_vecEndPos, that could be the key to blocking knife attacks.

As for grenade, dunno.

Geesu 06-13-2006 23:13

awesome thanks I'll try messing w/it, hopefully someone knows about the grenade...

I think an entity or trigger is created to do th enade damage, and I think u can hook trigger creations, then stop them, i'm not sure though

Geesu 08-08-2006 00:11

Re: Possible to block knife/HE damage like traceline?
 
Any idea what should be done with this? Just changing the origins to something else?

Thanks,
Josh

Cheap_Suit 08-08-2006 00:20

Re: Possible to block knife/HE damage like traceline?
 
did u try trace_hull for knife and trace_sphere for nades?

Geesu 08-08-2006 00:22

Re: Possible to block knife/HE damage like traceline?
 
I couldn't find trace_sphere in the includes... WHere would I trigger trace_hull? In traceline (which I hook w/fakemeta)?

Cheap_Suit 08-08-2006 00:27

Re: Possible to block knife/HE damage like traceline?
 
FM_TraceSphere, FM_TraceHull


All times are GMT -4. The time now is 08:00.

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