[SNIPPET][TF2] Detecting if player is being healed by a dispenser
PHP Code:
|
Re: [SNIPPET][TF2] Detecting if player is being healed by a dispenser
You can supposedly get the targets the dispenser is healing by using the array netprop: "healing_array_element" and GetEntDataArray
|
Re: [SNIPPET][TF2] Detecting if player is being healed by a dispenser
Quote:
|
Re: [SNIPPET][TF2] Detecting if player is being healed by a dispenser
Quote:
Compared to something that I do not know how to use. The above code is extremely more easier. |
Re: [SNIPPET][TF2] Detecting if player is being healed by a dispenser
Quote:
Code:
new m_Offset = FindSendPropOffs("CObjectDispenser", "healing_array_element") |
Re: [SNIPPET][TF2] Detecting if player is being healed by a dispenser
Quote:
netprops Code:
Member: healing_array_element (offset 0) (type integer) (bits 21)Code:
L 04/23/2014 - 11:30:24: [SM] [0] Line 672, E:\srcds\team fortress 2\tf\addon*seems those entity outputs not in work and there is also "m_hTouchingEntities", but not store anything. here lousy
example...
|
Re: [SNIPPET][TF2] Detecting if player is being healed by a dispenser
didnt know 'dispenser_touch_trigger' was an entity..
also you should check for disguised spies :p |
Re: [SNIPPET][TF2] Detecting if player is being healed by a dispenser
I assume, team check is enough. Haven't seen enemy dispenser healing spies :/
|
Re: [SNIPPET][TF2] Detecting if player is being healed by a dispenser
Quote:
The best part is when people troll and a medic uber charges the enemy spy so he can disable the sentries. |
Re: [SNIPPET][TF2] Detecting if player is being healed by a dispenser
Quote:
Here's a rundown of spy logic: A blue spy walks onto a red teleport undisguised, red teleport allows undisguised blue spy to use it. <--Test this out on ff2 with a hale that is the spy class but can't disguise(ninja spy) and have someone on red setup a teleporter, then as ninja spy stand on entrance. Another blue spy but disguised walks onto same teleporter and also gets teleported. Now, first blue spy to use the red teleporter gets teleported beside a red dispenser, red dispenser is like, "Nope, no heals for you." and the red sentry nearby kills the blue spy. 2nd blue disguised spy lands in same spot and red dispenser is like, "Oh hey, your part of my team, here's a heal plus I'll replenish your ammo." and red sentry goes, "No enemy here." Disguised blue spy walks off the ledge the nest is on and takes alot of fall damage and calls for a medic, a red medic comes by and heals the blue spy(while blue spy is disguised) and gets an uber ready, blue spy + medic take the teleporter to nest and red medic stupidly ubers the disguised blue spy and wonders why the person he's ubering is sapping the red engi's sentry nest. And that's the quick walkthrough of tf2 spy logic. |
| All times are GMT -4. The time now is 22:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.