View Single Post
Author Message
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 08-17-2010 , 19:02   [TF2] Regenerate Players (and players' weapons)
Reply With Quote #1

[TF2] Regenerate Player(s)
Version 1.0



Description:
Regenerates players just like a resupply locker.
Or: regenerates just weapons and ammo.

This plugin can be used to change equipped weapons without returning to spawn.
Client command is included to allow players to change unlocks in the field.
(Client command can be enabled by cvar.)

Commands:
Admin:
sm_regen <target> - Regenerates <target>'s health, ammo, and weapons.
sm_regen_nohp <target> - Regenerates <target>'s ammo and weapons. (Health stays the same).

Client:
sm_changeitems - Regenerates weapons and ammo (see cvars and notes below).

Cvars:
sm_regen_version - plugin version.
sm_regen_allow_client "0" - Change to "1" to allow clients to use sm_changeitems (see notes).

Install Instructions:
  1. Place RegeneratePlayer.smx into your addons/sourcemod/plugins/ folder.

Notes:
I will not mess with ammo values because it can cause things like 6-shot FaNs etc.

sm_changeitems:
  • Must be enabled with the cvar listed above.
  • Can only be used once per life to prevent spamming.

ToDo:
  • Nothing.

Version History:
  • V1.0
    • Initial Release
Attached Files
File Type: sp Get Plugin or Get Source (RegeneratePlayer.sp - 3257 views - 4.7 KB)
__________________
DarthNinja is offline