AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [TF2] Changing the Sniper's "headshot" damage. (https://forums.alliedmods.net/showthread.php?t=73319)

Cooltad 06-26-2008 20:41

[TF2] Changing the Sniper's "headshot" damage.
 
I severely need to know how to do this as the sniper needs to be better balanced on my crit server. Its the last class that needs balancing.

I checked cvars and found nothing. Is there any way like one of the server-side files for instance?

chundo 06-29-2008 04:47

Re: [TF2] Changing the Sniper's "headshot" damage.
 
Can't you block/modify the "player_hurt" or "player_death" event in a plugin?

Cooltad 06-29-2008 20:22

Re: [TF2] Changing the Sniper's "headshot" damage.
 
I don't do plugins so..

Greyscale 06-29-2008 20:57

Re: [TF2] Changing the Sniper's "headshot" damage.
 
Take a look at the Hooker extension.

You can hook HK_OnTakeDamage and change the damage dealt.

Cooltad 06-29-2008 22:10

Re: [TF2] Changing the Sniper's "headshot" damage.
 
I think a plugin request is in order. =D
Edit: The hooker extention's HK_OnTakeDamage does not work, as stated so in it's thread.

Is there any way other than a plugin to change how much damage is done when its a critical hit for the sniper rifle?
I tried editing sniperrifle.ctx and changed the 'damage' from 4 to 1 but that had no effect at all.

Greyscale 06-30-2008 13:33

Re: [TF2] Changing the Sniper's "headshot" damage.
 
I haven't seen any other way to modify damage :|

DeviusCreed 07-01-2008 18:27

Re: [TF2] Changing the Sniper's "headshot" damage.
 
Are you trying to lower the damage amount it inflicts? or increase it?

Cooltad 07-01-2008 18:32

Re: [TF2] Changing the Sniper's "headshot" damage.
 
I'm trying to lower the damage amount "headshots" increase, as that is the only time the sniper crits; on my all-crit server (where i try to do class balancing) the sniper is always way overpowered because it always gets crits and those crits are very very powerful.

So yes, I wish to decrease the damage scale on the sniperrifle's crits to probly either .75 of what it is normally or .5 (50% or half).

Dragonshadow 07-03-2008 10:00

Re: [TF2] Changing the Sniper's "headshot" damage.
 
I read that the sniper rifle's crit damage is hardcoded into valve's stuff, so you can't change it at all.

Neo Cool Dude 07-04-2008 10:44

Re: [TF2] Changing the Sniper's "headshot" damage.
 
Could you just lower the normal damage a sniper rifle shot did? (Since a crit multiplies the original damage.)

Cooltad 07-04-2008 14:23

Re: [TF2] Changing the Sniper's "headshot" damage.
 
My problem is solved actually. Devious Creed had the kindness to make a plugin for me that takes care of it. Please give him some rep. :]

Neo Cool Dude 07-09-2008 22:46

Re: [TF2] Changing the Sniper's "headshot" damage.
 
Could you post this plugin?

Cooltad 07-10-2008 06:24

Re: [TF2] Changing the Sniper's "headshot" damage.
 
PM DeviousCreed for it.


All times are GMT -4. The time now is 18:23.

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