Raised This Month: $ Target: $400
 0% 

func_vehicle , damagebits


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-17-2009 , 04:37   func_vehicle , damagebits
Reply With Quote #1

I want to set damage of func_vehicle to 0.0 in Ham_TakeDamage, so whats the damagebits of it?
DMG_CRUSH?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-17-2009 , 04:39   Re: func_vehicle , damagebits
Reply With Quote #2

Hook TakeDamage and see yourself.
__________________
Arkshine is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-17-2009 , 05:06   Re: func_vehicle , damagebits
Reply With Quote #3

Arkshine is it possible to block damage in Ham_TakeDamage Post?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-17-2009 , 05:12   Re: func_vehicle , damagebits
Reply With Quote #4

Not sure, but you could try
Code:
set_pev(id, pev_dmg_take, 0.0);
__________________
hleV is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-17-2009 , 05:25   Re: func_vehicle , damagebits
Reply With Quote #5

hmm not works
__________________
xbatista is offline
Send a message via Skype™ to xbatista
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 10-17-2009 , 06:26   Re: func_vehicle , damagebits
Reply With Quote #6

Try returning HAM_SUPERCEDE or try setting damage to 0 using SetHamParamFloat().
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-17-2009 , 06:29   Re: func_vehicle , damagebits
Reply With Quote #7

In Post it won't work
__________________
xbatista is offline
Send a message via Skype™ to xbatista
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-17-2009 , 06:54   Re: func_vehicle , damagebits
Reply With Quote #8

Why you register as post, so?
__________________
Arkshine is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-17-2009 , 07:06   Re: func_vehicle , damagebits
Reply With Quote #9

http://forums.alliedmods.net/showpos...0&postcount=25
I want that method but also to block damage done by func_vehicle
__________________
xbatista is offline
Send a message via Skype™ to xbatista
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-17-2009 , 07:16   Re: func_vehicle , damagebits
Reply With Quote #10

Check classname then..
__________________
xPaw is offline
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 22:40.


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