AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D] Damage (https://forums.alliedmods.net/showthread.php?t=85050)

voiderest 02-04-2009 19:17

[L4D] Damage
 
7 Attachment(s)
Allows you turn damage on/off for infected and friendly fire. Should be useful if you are trying to make a "gamemode" or "mod."

l4d_damage_head_only
1: Head damage only, this will override the other damage settings related to infected.

l4d_damage_shove
Damage done to players for shove.

l4d_damage_melee
0: Melee does no damage.

l4d_damage_chest, l4d_damage_stomach, l4d_damage_arm, l4d_damage_leg
0: Remove damage to X.

l4d_damage_ff
-10.0 to 10.0 dmg factor for victim.

-1 heals 100% of the damage and 1 leaves 100% of the damage.

l4d_damage_ffa
-10.0 to 10.0 dmg factor for attacker.

Fire and blast damage will still work on the infected no matter where they are hit. Also when the headshot only mode is on it will tell players to aim for the head in a hint. It does it when people connect or on the cvar changed to 1. Pic below if the in-game hint.

Fire and blast damage is not reversed in friendly fire because dumb people will find a way to catch your pipe bombs and jump into walls of fire.


Change Log:
0.9.1
- Added AutoExecConfig
0.9.2
- It works on the M4 and Hunting Rifle now :oops:
0.9.5
- Added player shove damage
0.9.6
- Fixed shove damage (will still hurt people if ff is set to normal)
- Fixed ff burning dmg bug
- Fixed ff mirror dmg bug involing being in black and white
0.9.7
- Fixed array out of bounds error
1.0
- tested on l4d2 sourcemod 1.3.2
- ff redone
- burn/blast dmg checks more accurate
- down count works
- known issue: You can sometimes decapitate infected without them dying, good luck.

grandwazir 02-06-2009 03:43

Re: [L4D] Damage Plugin
 
I've been thinking of adding a "headshot" only mode to All4Dead but you beat me to it!

You might want to add an additional FF mode which mirrors damage taken. So if I shoot someone I take 100% of the damage. Reason I suggest it is I think someone requested it a while back so it might be popular.

santaclaus 02-06-2009 13:40

Re: [L4D] Damage Plugin
 
Quote:

Originally Posted by grandwazir (Post 756693)
I've been thinking of adding a "headshot" only mode to All4Dead but you beat me to it!

You might want to add an additional FF mode which mirrors damage taken. So if I shoot someone I take 100% of the damage. Reason I suggest it is I think someone requested it a while back so it might be popular.

Quote:

l4d_damage_ff
0: Friendly fire does no damage.
1: Friendly fire is the same as normal
2: The attacker takes the damage
3: The damage is split between attacker and victim

headseeker 02-06-2009 19:39

Re: [L4D] Damage Plugin
 
Where are we supposed to put the cvar in? I tried to input the l4d_damage_ff 3 in sourcemod.cfg and then in server.cfg but none worked

grandwazir 02-07-2009 05:33

Re: [L4D] Damage Plugin
 
Yeah well it was late :) I must have missed that.

voiderest 02-07-2009 23:13

Re: [L4D] Damage Plugin
 
The cvars are defaulted to make the game behave as normal. You should be able to use them like any other cvar after the plugin is loaded. Should work by just typing it in the console or in cfg files.

If its not working I'm guessing that the cfgs are being ran before the plugins are loaded for some reason. You could always write your own cfg file and exec it once the server is loaded up.

Sammy-ROCK! 02-09-2009 20:08

Re: [L4D] Damage Plugin
 
Quote:

Originally Posted by voiderest (Post 757815)
The cvars are defaulted to make the game behave as normal. You should be able to use them like any other cvar after the plugin is loaded. Should work by just typing it in the console or in cfg files.

If its not working I'm guessing that the cfgs are being ran before the plugins are loaded for some reason. You could always write your own cfg file and exec it once the server is loaded up.

Or you could add to your plugin AutoExecConfig(true, "my_plugin_cfg_file") at OnPluginStart. Check Script Functions if your not sure what it does.

mukla67 02-11-2009 11:13

Re: [L4D] Damage Plugin
 
when will there be a cfg update on this plugin as i love the no melee dmg side of things but cnt find the config to put this in :( i.e like other plug ins generate one in the sourcemod cfg folder this one doesnt :(

tatercrisp 02-11-2009 18:03

Re: [L4D] Damage Plugin
 
Works fine for me.. just added to the end of my server cfg.. however it required a full reboot via my game server host control panel.

tfphoenix 02-15-2009 15:31

Re: [L4D] Damage Plugin
 
I have it set to deal the damage to the player who fired (cvar is 2) and it works with tier 1 guns uzi shotgun ect. but it doesnt work with the tier 2's like the assault rifle...


All times are GMT -4. The time now is 21:57.

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