Raised This Month: $51 Target: $400
 12% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ClassicGuzzi
Veteran Member
Join Date: Oct 2013
Location: Argentina
Old 03-14-2015 , 00:13   [TF2] Disable Rocket's smoke/Adding a kill in the feed/Stop medic's autoheal
Reply With Quote #1

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 ^-^
__________________
ClassicGuzzi is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 03-14-2015 , 03:34   Re: [TF2] Disable Rocket's smoke/Adding a kill in the feed/Stop medic's autoheal
Reply With Quote #2

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.
__________________
Chdata is offline
ClassicGuzzi
Veteran Member
Join Date: Oct 2013
Location: Argentina
Old 03-14-2015 , 03:38   Re: [TF2] Disable Rocket's smoke/Adding a kill in the feed/Stop medic's autoheal
Reply With Quote #3

Quote:
Originally Posted by Chdata View Post
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?
__________________
ClassicGuzzi is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 03-14-2015 , 04:23   Re: [TF2] Disable Rocket's smoke/Adding a kill in the feed/Stop medic's autoheal
Reply With Quote #4

If there is, it's an event in tf2
__________________
Chdata is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 03-14-2015 , 05:09   Re: [TF2] Disable Rocket's smoke/Adding a kill in the feed/Stop medic's autoheal
Reply With Quote #5

From https://wiki.alliedmods.net/Team_Fortress_2_Events ,

You may want to try :

player_healed or localplayer_healed
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword 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 21:13.


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