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

[TF2] Friendly Mode (v. 16.0112)


Post New Thread Reply   
 
Thread Tools Display Modes
Scipizoa
Senior Member
Join Date: Aug 2012
Location: ask me
Old 04-12-2013 , 22:31   Re: [TF2] Friendly Mode
Reply With Quote #11

Code:
L 04/12/2013 - 22:28:12: [SM] Native "GetClientWeapon" reported: Client index 693 is invalid
L 04/12/2013 - 22:28:12: [SM] Displaying call stack trace for plugin "friendly.smx":
L 04/12/2013 - 22:28:12: [SM]   [0]  Line 179, C:\Users\Glitch\Downloads\friendly.sp::OnTakeDamage()
__________________

ZaBaGaBe Gaming Community: http://steamcommunity.com/groups/ZBGB
Scipizoa is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 04-12-2013 , 23:22   Re: [TF2] Friendly Mode
Reply With Quote #12

Quote:
Originally Posted by Scipizoa View Post
Take A look at tidychats source code it stops a lot of chat stuff ;p
Uhh. TidyChat only stops messages from appearing in chat. It does NOT stop players from entering commands INTO the console or chatbox.


Quote:
Originally Posted by Scipizoa View Post
Code:
L 04/12/2013 - 22:28:12: [SM] Native "GetClientWeapon" reported: Client index 693 is invalid
L 04/12/2013 - 22:28:12: [SM] Displaying call stack trace for plugin "friendly.smx":
L 04/12/2013 - 22:28:12: [SM]   [0]  Line 179, C:\Users\Glitch\Downloads\friendly.sp::OnTakeDamage()
No idea. Maybe they are using a weapon that isn't recognized by the plugin, or maybe you didn't perform a map change upon loading the plugin. Will look into it.

Last edited by ddhoward; 04-13-2013 at 01:36.
ddhoward is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 04-13-2013 , 03:48   Re: [TF2] Friendly Mode
Reply With Quote #13

Uploading new version 13.0413 (0105). It is attached to this post, and will soon replace the version in the first post in this thread. Changes include:
  • Majorly revised code, reduced duplicate code, made certain things make more sense to me. Thank you 11530!
  • Added (Client != 0) check.
  • Changed sm_friendly_slap to sm_friendly_punish_hostile
  • sm_friendly_punish_hostile has new function, and a new default value of -1.
  • Added cvar sm_friendly_punish_friendly. Same function as sm_friendly_punish_hostile, but punishes players entering friendly mode. This will help prevent players from attacking others, then becoming immune to retaliation.
  • Punishments for changing modes do not apply if the mode change was made upon respawning.
  • If a mode change results in suicide due to sm_friendly_punish_hostile or sm_friendly_punish_friendly being negative, the mode change will carry over to the next life, regardless of the value of sm_friendly_remember.
  • Temporarily removed debug command
Attached Files
File Type: smx friendly.smx (6.7 KB, 234 views)
File Type: sp Get Plugin or Get Source (friendly.sp - 540 views - 11.5 KB)

Last edited by ddhoward; 04-13-2013 at 04:09.
ddhoward is offline
Scipizoa
Senior Member
Join Date: Aug 2012
Location: ask me
Old 04-13-2013 , 10:49   Re: [TF2] Friendly Mode
Reply With Quote #14

so the client check will fix the spam in my logs i've been getting? iirc wazmans version did this to and someone told him enity had to be set to 0
__________________

ZaBaGaBe Gaming Community: http://steamcommunity.com/groups/ZBGB

Last edited by Scipizoa; 04-13-2013 at 10:50.
Scipizoa is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 04-13-2013 , 14:55   Re: [TF2] Friendly Mode
Reply With Quote #15

Quote:
Originally Posted by Scipizoa View Post
so the client check will fix the spam in my logs i've been getting? iirc wazmans version did this to and someone told him enity had to be set to 0
No.
ddhoward is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 04-13-2013 , 17:34   Re: [TF2] Friendly Mode
Reply With Quote #16

Uploading new version 13.0413 (1433). Very minor update. It is attached to this post, and will soon replace the version in the first post in this thread. Changes are:
  • The cvar "sm_friendly_version" now properly updates upon installation of a plugin update and map change. Updates no longer require a full server restart.
Attached Files
File Type: sp Get Plugin or Get Source (friendly.sp - 530 views - 11.7 KB)
File Type: smx friendly.smx (6.8 KB, 233 views)
ddhoward is offline
salsav91
Senior Member
Join Date: Aug 2012
Location: Where Lollichops sleep
Old 04-13-2013 , 17:40   Re: [TF2] Friendly Mode
Reply With Quote #17

I noticed spies can still use their sappers while in friendly mod. I have the CVAR set so I am not sure if you knew this already.
__________________


Check out my pony animations. http://www.youtube.com/salsav91
salsav91 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 04-13-2013 , 17:48   Re: [TF2] Friendly Mode
Reply With Quote #18

Uploading new version 13.0413 (1445). Minor update. It is attached to this post, and will soon replace the version in the first post in this thread. Changes are:
  • Sappers have been added to the list of weapons blocked by sm_friendly_blockweps.
As I stated in the first post, I hope to have the list of weapons blocked easily modified by server admins, without needing to edit the plugin.
Attached Files
File Type: sp Get Plugin or Get Source (friendly.sp - 505 views - 11.7 KB)
File Type: smx friendly.smx (6.8 KB, 181 views)

Last edited by ddhoward; 04-13-2013 at 17:54.
ddhoward is offline
NameUser
Senior Member
Join Date: Apr 2012
Location: Bay Area, California
Old 04-13-2013 , 17:58   Re: [TF2] Friendly Mode
Reply With Quote #19

Can you add a feature in which bots are ignored by this?
__________________

Last edited by NameUser; 04-13-2013 at 17:59.
NameUser is offline
Send a message via Skype™ to NameUser
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 04-13-2013 , 18:15   Re: [TF2] Friendly Mode
Reply With Quote #20

Quote:
Originally Posted by NameUser View Post
Can you add a feature in which bots are ignored by this?
This plugin really wouldn't work if bots could attack and be attacked by friendly players. I can't really think of any map or scenario where it would function desirably with such a feature enabled.

This plugin is more about players being able to completely isolate themselves from combat.
ddhoward is offline
Reply


Thread Tools
Display Modes

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 04:54.


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