Raised This Month: $32 Target: $400
 8% 

[TF2] Friendly Mode (v. 16.0112)


Post New Thread Reply   
 
Thread Tools Display Modes
BBG_Theory
Veteran Member
Join Date: Oct 2010
Location: NC USA
Old 07-05-2013 , 11:11   Re: [TF2] Friendly Mode (v. 13.0602)
Reply With Quote #171

I'm getting this error also

Code:
L 07/05/2013 - 10:08:15: SourceMod error session started
L 07/05/2013 - 10:08:15: Info (map "achievement_idle_noglass_BBG") (file "errors_20130705.log")
L 07/05/2013 - 10:08:15: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 07/05/2013 - 10:08:15: [SM] Native "PrintToServer" reported: String formatted incorrectly - parameter 2 (total 1)
L 07/05/2013 - 10:08:15: [SM] Displaying call stack trace for plugin "friendly.smx":
L 07/05/2013 - 10:08:15: [SM]   [0]  Line 2046, friendly.sp::Updater_OnPluginUpdated()
BBG_Theory is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-07-2013 , 02:50   Re: [TF2] Friendly Mode (v. 13.0706)
Reply With Quote #172

Uploading new version 13.0706. 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:
  • Optimized weapon/taunt blocking

  • Fixed stupid PrintToServer mistake, not a big issue

  • Made timers more error proof

  • Upgraded to newer morecolors version, no actual changes made to the plugin

  • Added targeting filters! The following can be used as targeting filters with any Sourcemod command. These act similar to @all, @me, @alive, @bots, etc. For example, sm_slay @friendly will slay all Friendly players.

    • @friendly, @friendlies - Targets all Friendly players
    • @!friendly, @!friendlies - Targets all non-Friendly players
    • @friendlyadmins - Targets all players who have enabled Friendly Admin mode.
    • @!friendlyadmins - Targets all players who have NOT enabled Friendly Admin mode.
    • @friendlylocked - Targets all players who have been locked out of toggling Friendly mode.
    • @!friendlylocked - Targets all players who have NOT been locked out of toggling Friendly mode.

  • Changes to sm_friendly_notarget. This cvar determines whether Friendly players have the FL_NOTARGET flag, which makes them invisible to sentries and immune to airblasts.

    • 0 = Friendly players will not ever be given the flag; they will be targeted by sentries and can be airblasted. This is not recommended.

    • 1 = Friendly players will always have the flag, and therefore will always be invisible to sentries and immune to airblasts. However, if a Friendly player tries to change weapons by hitting a resupply, he will NOT be given his new weapons.

    • 2 = Same as 1, except the flag will be temporarily removed upon hitting a resupply cabinet. This has two issues:

      • If a player hits a cabinet, leaves the cabinet for a split second, and then starts touching the cabinet again BEFORE he can resupply, he will temporarily be visible to sentries. This visibility will last less than a second, ending when the resupply actually happens, or he stops touching the cabinet.

      • If a player touches a resupply cabinet, and THEN tries to change his weapons WHILE STILL TOUCHING THE CABINET, he will NOT recieve his new weapons.

    • 3 = The player will have the flag removed as long as he is touching a resupply. This means that Friendly players can always resupply successfully, but also means that a friendly player can act as an immortal sentry distracter as long as he remains on the cabinet. This may not be an issue depending on the map.


Please let me know if you run into any issues. Please also consider installing Updater if you haven't already!
Attached Files
File Type: smx friendly.smx (49.6 KB, 80 views)
File Type: sp Get Plugin or Get Source (friendly.sp - 75 views - 112.8 KB)
File Type: cfg friendly.cfg (20.5 KB, 80 views)
ddhoward is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-14-2013 , 07:29   Re: [TF2] Friendly Mode (v. 13.0706)
Reply With Quote #173

The damage inflicted by Toxic and Timebomb is never picked up by SDKHook_OnTakeDamage. I have no idea how to solve this, short of the RTD author putting in some new natives.
ddhoward is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 07-17-2013 , 17:45   Re: [TF2] Friendly Mode (v. 13.0706)
Reply With Quote #174

Quote:
Originally Posted by ddhoward View Post
The damage inflicted by Toxic and Timebomb is never picked up by SDKHook_OnTakeDamage. I have no idea how to solve this, short of the RTD author putting in some new natives.
You could mabye make them invulnerable, and then if they touch a hurt make them vulnerable or reduce health.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-18-2013 , 02:28   Re: [TF2] Friendly Mode (v. 13.0706)
Reply With Quote #175

Uploading new version 13.0717. 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:
  • Added cvar sm_friendly_alpha_proj, which sets the transparency of a Friendly player's projectiles. This cvar functions identically to the other alpha cvars.

  • Added more valid client checks, removing more potential errors and increasing compatibility with custom maps (especially those with auto-spawning engineer buildings)

  • Added a forward and 6 natives to be used in other plugins! See the .inc for more information.

  • If sm_friendly_ammopack = 1, Friendly players won't drop ammo upon death.

  • Changed a few things to smlib, will be slowly changing as much as I can over the next little while.

  • Minor code style changes, still trying to find a style and stick with it.

  • Fixed a very old bug where buildings' noblock cvars didn't actually do anything, and all buildings would just adopt the collision group of their engineers.

  • Fixed item_ammopack_medium never getting unhooked, and double hooking on occasion.

  • Safely changed all non-global strings to decl

  • Fixed the kill building cvars not being cached and set properly

  • Optimized weapon blocking some more

  • Added basic cvar verification. Most cvars will now behave as if they were set to default values, if an invalid value is used.

  • Players no longer switch all weapons upon becoming friendly; they will only switch weapons if the held weapon should be blocked.

  • Friendly Players with no allowed weapons will have all weapons removed from them.


Please let me know if you run into any issues. Please also consider installing Updater if you haven't already!
Attached Files
File Type: sp Get Plugin or Get Source (friendly.sp - 84 views - 125.1 KB)
File Type: smx friendly.smx (59.9 KB, 75 views)
File Type: cfg friendly.cfg (21.0 KB, 82 views)
File Type: inc friendly.inc (3.6 KB, 72 views)

Last edited by ddhoward; 07-18-2013 at 02:50.
ddhoward is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-18-2013 , 02:56   Re: [TF2] Friendly Mode (v. 13.0717)
Reply With Quote #176

There seems to be a problem with the first post; "Servers running this plugin" is linking to the wrong plugin, and I am unable to fill in the field where I am to put the version cvar.
ddhoward is offline
coty9090
Senior Member
Join Date: Aug 2007
Old 07-25-2013 , 19:13   Re: [TF2] Friendly Mode (v. 13.0717)
Reply With Quote #177

The auto updater keeps saying there's a new version, downloading and successfully updating over and over...

L 07/25/2013 - 15:46:46: Successfully updated and installed "[TF2] Friendly Mode".
L 07/25/2013 - 15:504: Update available for "[TF2] Friendly Mode" (friendly.smx). Current: 13.0717 - Latest: 13.071700
L 07/25/2013 - 15:504: [0] More info @ http://forums.alliedmods.net/showthread.php?t=213205
L 07/25/2013 - 15:51:29: Update available for "[TF2] Friendly Mode" (friendly.smx). Current: 13.0717 - Latest: 13.071700
L 07/25/2013 - 15:51:29: [0] More info @ http://forums.alliedmods.net/showthread.php?t=213205
L 07/25/2013 - 15:52:18: Successfully updated and installed "[TF2] Friendly Mode".
L 07/25/2013 - 173:43: Update available for "[TF2] Friendly Mode" (friendly.smx). Current: 13.0717 - Latest: 13.071700
L 07/25/2013 - 173:43: [0] More info @ http://forums.alliedmods.net/showthread.php?t=213205
L 07/25/2013 - 1746: Successfully updated and installed "[TF2] Friendly Mode".
L 07/25/2013 - 17:40:43: Update available for "[TF2] Friendly Mode" (friendly.smx). Current: 13.0717 - Latest: 13.071700
L 07/25/2013 - 17:40:43: [0] More info @ http://forums.alliedmods.net/showthread.php?t=213205
L 07/25/2013 - 17:412: Successfully updated and installed "[TF2] Friendly Mode".
L 07/25/2013 - 17:54:03: Update available for "[TF2] Friendly Mode" (friendly.smx). Current: 13.0717 - Latest: 13.071700
L 07/25/2013 - 17:54:03: [0] More info @ http://forums.alliedmods.net/showthread.php?t=213205
L 07/25/2013 - 17:54:50: Successfully updated and installed "[TF2] Friendly Mode".

Last edited by coty9090; 07-25-2013 at 19:16.
coty9090 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-25-2013 , 22:21   Re: [TF2] Friendly Mode (v. 13.0717)
Reply With Quote #178

Quote:
Originally Posted by coty9090 View Post
The auto updater keeps saying there's a new version, downloading and successfully updating over and over...
Should be fixed now; sorry about that.

Last edited by ddhoward; 07-25-2013 at 22:21.
ddhoward is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-30-2013 , 07:32   Re: [TF2] Friendly Mode (v. 13.0717)
Reply With Quote #179

Uploading new version 13.0730. 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 include:
  • The sm_friendly_action_*_spawn cvars now only apply to the player's OWN spawn room, and not the rooms belonging to the enemy team. Servers that had an issue with this in the past are recommended to install Dr. McKay's No Enemies in Spawn plugin.

  • Sound Hook, command listeners, and targeting filters are now properly removed OnPluginEnd

  • Added wrenches and the Rescue Ranger to the default blocked weapons.

  • The plugin now logs an error when a convar has an invalid value set.

  • Friendly Stickybombs now have invulnerability and working transparency. Stickies now vanish upon their owner leaving Friendly mode.

  • Most boolean convar "changes" that are actually the same value no longer fire the events that a real change does. For example, changing sm_friendly_ammopack from "1" to "true" no longer results in ammo packs being hooked twice.

  • Worked around Valve's "Suicide/slaying sometimes not working in TF2 during the first few seconds after spawning" bug.


Please let me know if you run into any issues. Please also consider installing Updater if you haven't already!
Attached Files
File Type: smx friendly.smx (62.4 KB, 71 views)
File Type: sp Get Plugin or Get Source (friendly.sp - 76 views - 130.8 KB)

Last edited by ddhoward; 07-30-2013 at 22:00.
ddhoward is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 08-04-2013 , 00:47   Re: [TF2] Friendly Mode (v. 13.0730)
Reply With Quote #180

Uploading new version 13.0803. 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 include:
  • NEW FEATURE: Added cvar sm_friendly_thirdperson with default value of "0". When enabled, Friendly players will be put into thirdperson mode, and players will be put back into firstperson upon exiting Friendly mode. If players who have access to sm_friendly also have access to some other thirdperson command (such as DarthNinja's plugin), enabling this cvar is not recommended.

  • BUGFIX: Prior to this update, whenever an admin would enable Friendly mode on a dead player, an error would occur. This error would also occur upon activating Friendly mode on a player in civilian mode (whether an admin toggle, or a self-toggle.)


Please let me know if you run into any issues. Please also consider installing Updater if you haven't already!
Attached Files
File Type: smx friendly.smx (63.2 KB, 113 views)
File Type: sp Get Plugin or Get Source (friendly.sp - 99 views - 132.0 KB)
File Type: cfg friendly.cfg (21.5 KB, 103 views)

Last edited by ddhoward; 08-04-2013 at 03:14.
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 18:36.


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