Raised This Month: $ Target: $400
 0% 

[TF2] How to hook hitting a building?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Blinx
Senior Member
Join Date: Oct 2013
Old 04-28-2016 , 10:11   Re: [TF2] How to hook hitting a building?
Reply With Quote #4

Huh, that plugin does seem to register ontakedamage for entities, I guess I'll explore that a bit more then, in my testing though, I couldn't get any response for ontakedamage when hitting a friendly building, maybe it's because it's not taking any damage?

Edit: Yes, that's what's happening, OnTakeDamage does work for buildings, but obviously, a friendly building doesn't take damage, so I need to find a a way to feign damage on friendly buildings.

Edit Edit @Chaosxk: I didn't give your idea much merit at first but it's actually by far the best way to achieve this without doing some team owner tomfoolery, thanks for this, my plugin is almost working now.

Last edited by Blinx; 04-28-2016 at 17:35.
Blinx is offline
 


Thread Tools
Display Modes

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 21:08.


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