View Single Post
Author Message
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 08-31-2011 , 11:58   [CS:S] Move Bomb
Reply With Quote #1

DESCRIPTION:
This plugin will move the planted bomb to your players feet (or the feet of the player you're spectating), or, if you're in free camera mode, it will put the bomb at eye level

This plugin is designed to be for fun. For when chicken CTs don't try to defuse, admins can "move" the bomb so that it will explode near the fleeing CT. The planter of the bomb still gets the points if it explodes.

It is defaulted to allow admins with CHEAT flag persmission to use this command. You can customize access to this command using the admin_overrides.cfg and adding whatever flag you want to the "sm_movebomb", example:

"sm_movebomb" "o"

That would set the permission for this command to be the CUSTOM1 flag

CVARS:
sm_movebomb from in-game consle (or /movebomb and !movebomb from chat, assuming you have "!" set as your PublicChatTrigger in core.cfg)
- You cannot use this from out-of-game console (such as HLSW)

CREDITS:
xaider for code samples from Advanced Commands
- regarding vectors

Bacardi for previous plugin help with the NoBombDamage
- regarding OnEntityCreated and OnEntityDestroyed
- and for help with optimizing this plugin (I still have a lot to learn)

Changelog
Version 1.0
- Initial public release

Version 1.1
- Changed from RegConsoleCmd to RegAdminCmd and removed CheckCommandAccess

Version 1.2
- Removed unneeded SDKHooks and OnConfigsExecuted per Bacardi's suggestions
- Removed SDKHooks and used HookEvent instead
- Removed unneeded check if planted_c4 != -1 (thanks KyleS)

INSTALLATION:
Put the MoveBomb.smx in your cstrike/addons/sourcemod/plugins folder and either load the plugin manually, change the map, or restart the server.

Admins with the "z" flag will always have access to this command (sm_movebomb) regardless of what you set it to in admin_overrides.cfg file.
Attached Files
File Type: sp Get Plugin or Get Source (MoveBomb.sp - 1360 views - 3.1 KB)

Last edited by TnTSCS; 09-01-2011 at 10:35. Reason: Update from 1.1 to 1.2
TnTSCS is offline