Raised This Month: $ Target: $400
 0% 

TF2 - On hit building event


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Tylerst
Veteran Member
Join Date: Oct 2010
Old 07-30-2015 , 23:39   Re: TF2 - On hit building event
Reply With Quote #2

Quote:
Originally Posted by boynedmaster View Post
Is there an event for when the Engineer hits a friendly building? I want to change the amount it upgrades by (from 25).

net_showevents 2 doesn't show anything
If you want to change it globally just change the cvar tf_obj_upgrade_per_hit

If you want to do it per player you can use the attribute "upgrade rate decrease" with a positive value(IE 1.6 = 40 per hit, 2.0 = 50 per hit, 3.0 = 75 per hit, etc).

As far as detecting when an engineer hits a friendly building, it's possible it still fires OnTakeDamage even though the damage is 0, though that's just a guess.
Tylerst is offline
 



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 03:31.


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