I noticed how little plugins actually change gameplay on HL2DM other than RP servers, so I decided to make one.
All the plugin does is add additional effects to your weaponry.
The plugin has only one cvar, sm_swm_version, to follow up on it.
Right now, it's version 1.3
Put the plugin in the normal folder and add the swm_effects.txt in a folder named /data/
in that same position (if it doesn't exist, make one).
This file gets updated automaticly by sm_swm_seteffect, but if you'd change it manually on an active server (o_O') the changes would take effect after map change.
Commands and ConVars:
sm_swm_seteffect <weapon name> <effect name>
Sets the effect for that certain weapon and saves it to the config file.
Enables/Disables the plugin's effects. Map change is required for the effects to stop/start.Currently supported effects:
Removes all effects.
Blinds the player.
Slows the player to 30~% of his normal speed (60.0).
Confuses the player by blurring his sight.
DisoriŽntates the player. Changes his sight randomly.
Speeds the player up to 2x normal speed (380.0).
Launches the player into the air.
Removes all weapons from the player.
Switches the player's weapon to gravity gun.
Allows the player to fly. (No no-clip, he's still affected by gravity, but can defy it ;p)
Deals and extra 3 damage, which gets healed on the person attacking
The plugin starts off with no effects set in the config. I suggest adding the positive buffs to the strong weapons and the negative buffs to the weaker ones.
You can use sm_swm_seteffect to set the weapons.
Some examples could be:
sm_swm_seteffect "weapon_crossbow" "speed"
sm_swm_seteffect "weapon_crowbar" "slow"
sm_swm_seteffect "weapon_357" "fly"
sm_swm_seteffect "weapon_pistol" "daze"
sm_swm_seteffect "weapon_ar2" "bump"
sm_swm_seteffect "weapon_physcannon" "normal"
If you have suggestions for effects, feel free to spout them!
*It now saves and loads from a file which effects it should use.
*Giving a wrong weapon or effect will default to crowbar and 0 (normal) now. This also means that mods with different weapon names will cause the effect of crowbar to be applied when hurt by it.
*Convar for enabling/disabling. The actual change will take place on map change.
*Changed the swm_effects file to show actual names rather than numbers.
*Rewrote the plugin to be a bit cleaner, hopefully removing some bugs.
*Added the Drain effect.
(I am aware it's spelled spec
ial. I'm just a bit speshial.)
I also attached a SDKHooks
version. Use this version to add effects to weapons that do no damage, like weapon_annabelle.
This does require the extension to be installed