AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [TF2] Friendly Mode (v. 16.0112) (https://forums.alliedmods.net/showthread.php?t=213205)

ddhoward 04-20-2013 23:14

Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
 
http://wiki.alliedmods.net/Overridin...ess_(SourceMod)

?

salsav91 04-20-2013 23:33

Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
 
Quote:

Originally Posted by ddhoward (Post 1936780)

I tried but it didnt work, the only way I have been able to do it is by rewriting the

Code:

RegAdminCmd("sm_friendly", OnToggleFriendly, 0, "Toggles Friendly Mode");
to

Code:

RegAdminCmd("sm_friendly", OnToggleFriendly, ADMFLAG_BAN, "Toggles Friendly Mode");
I cant do it with the latest version because the goomba.ini keeps throwing off errors when I try to compile.

ddhoward 04-20-2013 23:34

Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
 
2 Attachment(s)
Uploading new version 13.0420. It is attached to this post, has been pushed to the server that Updater downloads from, and will soon replace the version in the first post in this thread. Changes are:
  • Improved behavior on plugin unload, plugin disable (through sm_friendly_disabled), and plugin auto-update.

  • Removed sm_friendly_enabled -1 functionality. When the plugin is disabled or unloaded, Friendly players will be forced to hostile mode. What else happens to them is based on what you have sm_friendly_action_h set to.

  • Fixed a warning on compilation, big thanks to this guy!

Also, please note that an upcoming update will include AutoExecConfig. This will move all convar settings to tf/cfg/sourcemod/friendly.cfg

Next update will focus on Engie buildings.

Please let me know if you run into any issues. Please also consider installing Updater if you haven't already!


EDIT: WARNING: This version of the plugin is bugged, and REQUIRES the Goomba Stomp plugin to be installed. It is recommended that you instead install the current version.

ddhoward 04-20-2013 23:35

Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
 
Quote:

Originally Posted by salsav91 (Post 1936786)
I tried but it didnt work, the only way I have been able to do it is by rewriting the

Code:

RegAdminCmd("sm_friendly", OnToggleFriendly, 0, "Toggles Friendly Mode");
to

Code:

RegAdminCmd("sm_friendly", OnToggleFriendly, ADMFLAG_BAN, "Toggles Friendly Mode");
I cant do it with the latest version because the goomba.ini keeps throwing off errors when I try to compile.

Paste your overrides file here?

Dr. McKay 04-20-2013 23:36

Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
 
Quote:

Originally Posted by salsav91 (Post 1936786)
I tried but it didnt work

You're doing it wrong.

salsav91 04-20-2013 23:38

Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
 
Quote:

Originally Posted by ddhoward (Post 1936788)
Paste your overrides file here?

"sm_friendly" "a"


I have set enough overrides to know if I have done it wrong.

Dr. McKay 04-20-2013 23:42

Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
 
Quote:

Originally Posted by salsav91 (Post 1936790)
"sm_friendly" "a"


I have set enough overrides to know if I have done it wrong.

That's not an overrides file. You need to paste the entire file.

salsav91 04-20-2013 23:47

Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
 
Quote:

Originally Posted by Dr. McKay (Post 1936791)
That's not an overrides file. You need to paste the entire file.

So paste all of the commands I currently override?

Code:

Overrides
{
        /**
        * By default, commands are registered with three pieces of information:
        * 1)Command Name                (for example, "csdm_enable")
        * 2)Command Group Name        (for example, "CSDM")
        * 3)Command Level                (for example, "changemap")
        *
        * You can override the default flags assigned to individual commands or command groups in this way.
        * To override a group, use the "@" character before the name.  Example:
        * Examples:
        *                "@CSDM"                        "b"                                // Override the CSDM group to 'b' flag
        *                "csdm_enable"        "bgi"                        // Override the csdm_enable command to 'bgi' flags
        *
        * Note that for overrides, order is important.  In the above example, csdm_enable overwrites
        * any setting that csdm_enable previously had.
        *
        * You can make a command completely public by using an empty flag string.
        */

"sm_friendly" "a"       
"sm_bgod"        "a"
"sm_resizeme"  "o"
"+sm_laser" "a"
"-sm_laser" "a"
"sm_togglehoming" "a"
"sm_setspawn" "p"
"sm_clearspawn" "p"
"sm_color" "a"
"sm_setspeed" "o"
"sm_resetspeed" "o"
"sm_goto" "p"
"sm_bring" "p"
"sm_gimme" "p"
"sm_noclip" "p"
"sm_resizehead" "a"
"sm_fia" "o"
"sm_fia_adminflag" "o"
"sm_resizemyhead" "a"
"advertisement_immunity" "a"
"unusual_immunity" "o"
"sm_render" "b"
"sm_crits" "b"
"sm_buddha"        "b"
"sm_setplayerspawn" "b"
"sm_clearplayerspawn" "b"
"sm_god"        "c"
"sm_mortal"        "c"
"melee_voteflag" "b"
"sm_voteban" "c"
"sm_votekick" "c"
"sm_rweapons" "b"
"sm_banspray" "c"
"sm_unbanspray" "c"
"sm_banspraylist" "c"
"sm_setff" "c"
"sm_unsetff" "c"
"sm_motd" "b"
"sm_reloadadmins" "b"
"sm_map" "b"
"sm_kick" "r"
"sm_ban" "r"
"sm_resize"  "z"
"sm_scale"      "z"
"sm_scaleme"    "z"               
"sm_fake" "z"
"sm_force" "z"
"sm_sbuild" "z"
"melee_flag" "z"
"sm_forcertd" "z"
"target_info" "z"
"sm_hudsay" "z
"sm_betheghost_override" "z"
"melee_voteflag" "z"
"sm_rof_access" "z"
"sm_rof_access_target" "z"
"sm_spycrab" "z"

}

Less you mean some other override that I am unaware of.

ddhoward 04-21-2013 00:31

Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
 
It's working for me. :\

ddhoward 04-21-2013 00:44

Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
 
Well, until we can figure out why the Overrides aren't working for you, let's focus on the other issue.

What errors are goomba.inc giving you when you attempt to compile?


All times are GMT -4. The time now is 19:52.

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