Raised This Month: $51 Target: $400
 12% 

[TF2] Friendly Mode (v. 16.0112)


Post New Thread Reply   
 
Thread Tools Display Modes
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 04-20-2013 , 23:14   Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
Reply With Quote #81

http://wiki.alliedmods.net/Overridin...ess_(SourceMod)

?
ddhoward is offline
salsav91
Senior Member
Join Date: Aug 2012
Location: Where Lollichops sleep
Old 04-20-2013 , 23:33   Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
Reply With Quote #82

Quote:
Originally Posted by ddhoward View Post
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.
__________________


Check out my pony animations. http://www.youtube.com/salsav91
salsav91 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 04-20-2013 , 23:34   Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
Reply With Quote #83

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.
Attached Files
File Type: smx friendly.smx (14.9 KB, 79 views)
File Type: sp Get Plugin or Get Source (friendly.sp - 81 views - 23.1 KB)

Last edited by ddhoward; 04-29-2013 at 02:24.
ddhoward is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 04-20-2013 , 23:35   Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
Reply With Quote #84

Quote:
Originally Posted by salsav91 View Post
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?
ddhoward is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 04-20-2013 , 23:36   Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
Reply With Quote #85

Quote:
Originally Posted by salsav91 View Post
I tried but it didnt work
You're doing it wrong.
__________________
Dr. McKay is offline
salsav91
Senior Member
Join Date: Aug 2012
Location: Where Lollichops sleep
Old 04-20-2013 , 23:38   Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
Reply With Quote #86

Quote:
Originally Posted by ddhoward View Post
Paste your overrides file here?
"sm_friendly" "a"


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


Check out my pony animations. http://www.youtube.com/salsav91
salsav91 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 04-20-2013 , 23:42   Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
Reply With Quote #87

Quote:
Originally Posted by salsav91 View Post
"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.
__________________
Dr. McKay is offline
salsav91
Senior Member
Join Date: Aug 2012
Location: Where Lollichops sleep
Old 04-20-2013 , 23:47   Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
Reply With Quote #88

Quote:
Originally Posted by Dr. McKay View Post
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.
__________________


Check out my pony animations. http://www.youtube.com/salsav91
salsav91 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 04-21-2013 , 00:31   Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
Reply With Quote #89

It's working for me. :\
ddhoward is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 04-21-2013 , 00:44   Re: [TF2] Friendly Mode (now with NoBlock, Auto-Updating, & Goomba Compatibility)
Reply With Quote #90

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?
ddhoward is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:38.


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