PDA

View Full Version : [TF2] Disable Rocket's smoke/Adding a kill in the feed/Stop medic's autoheal


ClassicGuzzi
03-14-2015, 00:13
Hey everybody, I have three simple questions, I wouldn't post here before researching a little first so I don't know how to solve this 3 unrelated problems.

1. Some models like the default rocket, sentry's rocket, and the custom nuke model from the Yet Another Dodgeball Plugin have an automatic effect behind, the smoke. Is there any way to disable it?
Also is what's the best way to add it to a model that doesn't have it?

2. I want to edit my deathrun plugin to show every kill on the feed as the death's kill, I'm not interested on the points, just the feed. I tried using SetEventInt(event,"attacker",currentDeath) on the player death event but it didn't work.

3. Since every class is allowed on both my deathrun plugin and dodgeball plugin, I want ever class to be the same on terms of speed and health, I know it's easy to set the player's health but I don't want the medic to auto-gain health every second. One solution it's to apply a weapon attribute for medics on both plugins, it's not that hard but it's kind of a weird solution.

Thanks everybody for your time ^-^

Chdata
03-14-2015, 03:34
2. You need to SetEventString on "weapon" to something from mod_textures.txt

Note, inflictor will be greater than MaxClients for rocket kills because the inflictor will be the rocket. inflictor != attacker might be good for determining rocket kills.

3. Do what you said or block medic.

ClassicGuzzi
03-14-2015, 03:38
2. You need to SetEventString on "weapon" to something from mod_textures.txt

Note, inflictor will be greater than MaxClients for rocket kills because the inflictor will be the rocket. inflictor != attacker might be good for determining rocket kills.

3. Do what you said or block medic.

It's for Deathrun so I would like to have that message with "finished off".

Also yeah I should check which attribute will do it.

By there way, is there an OnHealthGained or something that I could hook?

Chdata
03-14-2015, 04:23
If there is, it's an event in tf2

RedSword
03-14-2015, 05:09
From https://wiki.alliedmods.net/Team_Fortress_2_Events ,

You may want to try :

player_healed or localplayer_healed