AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Any] Deluxe Godmode (https://forums.alliedmods.net/showthread.php?t=108251)

DarthNinja 11-03-2009 06:45

[Any] Deluxe Godmode
 
1 Attachment(s)
[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

Mnkras 11-03-2009 10:52

Re: [Any] Deluxe Godmode
 
Testing in TF2 right now

BTW what did you use to record it?

EDIT works in TF2 can you make it a toggle though also so instead of

/god @me 1

just /god @me and it toggles

Darkimmortal 11-03-2009 13:30

Re: [Any] Deluxe Godmode
 
I've seen sm_god taken in another plugin, possibly funcommandsx?

Mnkras 11-03-2009 13:39

Re: [Any] Deluxe Godmode
 
yea a couple plugins use that and i think it was pREDs super cmds that has it and a few others

also im running an achievement server and i want clients to be able to toggle it on themselves but not on others

DarthNinja 11-03-2009 14:35

Re: [Any] Deluxe Godmode
 
@Mnkras
If you type /god with no vars it toggles godmode on you (see first video).
I used Xfire to record, Fraps also works but I didn't feel like starting it.
Thanks for the info on TF2, I'm going to add some vids for that shortly.

@Darkimmortal
FuncommandsX doesn't have godmode (not since the last time I used it anyway). There is a TF2-only godmode that bugs up sometimes... Also pReds super commands prolly has it, but thats for CSS only.

DarthNinja 11-04-2009 01:08

Re: [Any] Deluxe Godmode
 
Version 1.1.0
Added buddha mode
Removed version 1.0.0.1 bug that prevented compiling.

Mnkras 11-04-2009 19:36

Re: [Any] Deluxe Godmode
 
preds super cmds works in tf2 just not all the commands but god does work and im saying on other people like i have to go /god Mnkras 1 i just want to do /god mnkras and if its on it turns it off etc

DarthNinja 11-04-2009 19:55

Re: [Any] Deluxe Godmode
 
Quote:

Originally Posted by Mnkras (Post 981086)
preds super cmds works in tf2 just not all the commands but god does work and im saying on other people like i have to go /god Mnkras 1 i just want to do /god mnkras and if its on it turns it off etc

ah ok,
I could re-write it so that it toggles automatically, but with a 1/0 toggle groups, for instance "sm_god @red 1", then if some of the people on red suicide and you want to give them godmode again you can just repeat the command, otherwise you would have to manually toggle godmode on the people who suicided.

In short, I'd rather have the extra functionality by being able to manually specify 1/0 then an automatic toggle. (Plus adding a space and a 1 really isn't that hard).

That being said, if for some reason you really need a copy with an automatic toggle I'll be happy to make you one.

Mnkras 11-04-2009 20:34

Re: [Any] Deluxe Godmode
 
why not both :P

DarthNinja 11-08-2009 03:14

Re: [Any] Deluxe Godmode
 
Quote:

Originally Posted by Mnkras (Post 981141)
why not both :P

Good point, I'll work on it later.


All times are GMT -4. The time now is 11:47.

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