View Single Post
Author Message
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 11-03-2009 , 06:45   [Any] Deluxe Godmode
Reply With Quote #1

[Any] Deluxe Godmode
Version 2.3.1



Description:
This plugin allows admins with the Slay flag to toggle godmode on themselves and other players!
May be configured to allow clients to use the commands on themselves.
Now has the option to enable god/buddha mode automatically when a player spawns

Looking for an Alien Swarm Version?
You can find it Right Here!


Left4Dead demo videos:
Self Toggle || Admin-Player Toggle

Team Fortress 2 demo videos:
Self Toggle || Admin-Player Toggle



Commands:
  • sm_god [User/Group] [1/0] - Player will take no damage
    Examples:
    • sm_god - toggles godmode on the player using the command
    • sm_god <client> - toggles godmode on another player
    • sm_god @all 1 - enables godmod on all players (0 would disable)
  • sm_buddha [User/Group] [1/0] - Player will take no damage, but will still react to it (like rocket jumping).
    Same usage as above.
  • sm_mortal [User/Group] - Makes the player mortal (removes all godmode effects).
    Same usage as above, no toggle.
Cvars:
  • sm_godmode_version - Plugin Version
  • sm_godmode_spawn "0" - 0 = Players spawn normally, 1 = Players spawn with godmode, 2 = Players spawn with buddha mode
  • sm_godmode_spawn_admins "0" - Set to 1 and only admins will be given godmode on spawn. Requires slay flag (can be changed with godmode_adminonly_override).
  • sm_godmode_announce "1" - Tell the player when an admin gives/removes their godmode
  • sm_godmode_remember "0" - Set to 1 and the plugin will remember players' godmode state after they respawn (for suicides/round ends/etc)

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

Notes:
Tested and working in AoC, CS:S, L4D1, L4D2, and TF2

If players have access to sm_god and sm_buddha, they will be able to use them on themselves (but not other players).
Players can always use sm_mortal.

Command Access:
By default, all players have access to sm_god, sm_buddha, and sm_mortal.
You may (and probably should) override access to these commands so that normal players do not have access to them.

Only admins with access to the overrides sm_godmode_admin, sm_buddhamode_admin, and sm_mortalmode_admin, will be able to use those commands on other players. The default access flag for these overrides is "Slay".

Version History:
  • V1.0.0
    • Initial release
  • V1.1.0
    • Added Buddha mode
  • V2.0.0
    • Plugin completely re-written
    • Now can give godmode / buddha mode on spawn
    • Added sm_mortal command
    • Cvar added to control some chat messages added
    • Cvar added to allow non-admins to use commands
  • V2.1.0
    • Can now be configured to only give admins godmode when they spawn.
  • V2.1.1
    • Fixed typo in plugin info
  • V2.2.0
    • Added sm_godmode_remember (see above)
    • Plugin now resets the reference value when a client disconnects.
  • V2.2.1
    • Fixed some typos in descriptions
  • V2.3.0
    • Some code cleanup, fixes, and improvements.
    • Fennec approved.
  • V2.3.1
    • Removed redundant(?) CloseHandle call.

Total downloads prior to 6/10/2012 : 3,963
Attached Files
File Type: sp Get Plugin or Get Source (Godmode.sp - 26888 views - 12.6 KB)
__________________

Last edited by DarthNinja; 06-10-2012 at 23:42.
DarthNinja is offline