Raised This Month: $ Target: $400
 0% 

How can i detect when a bullet touch the c4?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
g_often
Senior Member
Join Date: Jan 2010
Location: In your mind
Old 03-15-2010 , 15:34   How can i detect when a bullet touch the c4?
Reply With Quote #1

How can i detect when a bullet touch the c4?
__________________
Reality is wrong, dreams are for real.
g_often is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-15-2010 , 15:35   Re: How can i detect when a bullet touch the c4?
Reply With Quote #2

Check out the source from the Weapon Physics plugin.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 03-15-2010 , 16:41   Re: How can i detect when a bullet touch the c4?
Reply With Quote #3

Here ya go:
http://forums.alliedmods.net/showthread.php?p=850698
Seta00 is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-15-2010 , 16:43   Re: How can i detect when a bullet touch the c4?
Reply With Quote #4

Set for c4 entity pev_takedamage to DAMAGE_YES, and catch the damage with Ham_TakeDamage for example.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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