This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

help with reduce damage


Post New Thread Reply   
 
Thread Tools Display Modes
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-27-2005 , 20:17  
Reply With Quote #11

... are you serious? I've spent three days working on this dodging shit and I haven't been able to figure it out because it's called afterwards??!?! Damn, well... you'd have to use client_prethink then right?

And yes, wrong line, sorry; I must have completely left it out :S new Damage = read_data(2) that will return the damage, I guess just done? Um... Yeah, I guess you are going to have to use client_prethink; sorry, not quite sure how it works.

EDIT:
It should definetily be added to the function wiki that this is called after damage is done!
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-27-2005 , 23:03  
Reply With Quote #12

Quote:
Originally Posted by BioHazardousWaste
It should definetily be added to the function wiki that this is called after damage is done!
Why would a potentially mod-specific event that has nothing to do with AMXx functions be noted in the wiki?

GL with prethink, you have to use traceline, or try using Engine's register_message stuff.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-27-2005 , 23:21  
Reply With Quote #13

register_message is about as simple as register_event.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-28-2005 , 12:21  
Reply With Quote #14

I just thought of it now, you could use register_message to intercept the message before it actually gets sent, but the message is still sent after the damage anyway, isn't it?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
jo12a
Junior Member
Join Date: Apr 2005
Old 05-01-2005 , 02:25  
Reply With Quote #15

Any body can paste complete solutions about reduce damage, i test a lot of stuff but seem that no one work
jo12a is offline
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 05-01-2005 , 13:46  
Reply With Quote #16

Well, have you tried searching? http://forums.alliedmods.net/showthr...+damage+reduce
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
jo12a
Junior Member
Join Date: Apr 2005
Old 05-05-2005 , 12:26  
Reply With Quote #17

This does not work perfect.
jo12a 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 12:22.


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