Raised This Month: $ Target: $400
 0% 

[TF2] Friendly Mode (v. 16.0112)


Post New Thread Reply   
 
Thread Tools Display Modes
hannes96
AlliedModders Donor
Join Date: May 2013
Location: Germany
Old 10-02-2013 , 22:34   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #201

Is there a way to turn off that other players are able to block the friendly players?
hannes96 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 10-02-2013 , 23:29   Re: Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #202

Quote:
Originally Posted by hannes96 View Post
Is there a way to turn off that other players are able to block the friendly players?
Currently, no. It's impossible. However, I'm looking into changing how the noblock settings work, now that I'm a little more knowledgeable about certain things. Hopefully I can get two-way noblock going. I'll keep you posted.
__________________

Last edited by ddhoward; 10-03-2013 at 00:50.
ddhoward is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 10-03-2013 , 04:12   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #203

It is possible, but you'd have to use shouldcollide and possibly some tracehullfilters for moving them around after some time.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 10-03-2013 at 04:13.
friagram is offline
DeathMaster
AlliedModders Donor
Join Date: Mar 2009
Old 10-03-2013 , 19:25   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #204

Would it be possible to add a cvar that disables all weapons?
DeathMaster is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 10-03-2013 , 20:28   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #205

I'm looking into making the weapon blocking cvars reversible (meaning that they are more of a whitelist than a blacklist) as well as a setting that would allow certain weapons to be removed from the player entirely.

I'm also trying to create a way to allow certain weapons to be held, but not swung.

This all hinges on my ability to successfully separate the various functions of this very cluttered plugin into several individual plugins, using natives and forwards provided by friendly.smx.

I've made a lot less progress on this so far than I hoped to have; with a new job, helping my boyfriend adjust to life at his new school, moving house, and various medical issues, I haven't really had the time to focus on my most complicated plugin.
__________________

Last edited by ddhoward; 10-03-2013 at 20:31.
ddhoward is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 10-04-2013 , 01:12   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #206

You can block almost all weapon fire, by setting the nextattack primary/secondary netprops, juet set the time far into the future. Worse case you could use runcmd and block/remove inattack and inattack2 but it wont block csp fire.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
fiala06
AlliedModders Donor
Join Date: Mar 2009
Location: Eugene, OR
Old 10-10-2013 , 10:59   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #207

I'm getting this error in my logs over and over again.. Any ideas?

L 10/10/2013 - 05:48:48: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:48:48: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:48:48: [SM] [0] Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 05:48:49: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:48:49: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:48:49: [SM] [0] Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 05:53:29: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:53:29: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:53:29: [SM] [0] Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 05:53:29: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:53:29: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:53:29: [SM] [0] Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 05:530: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:530: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:530: [SM] [0] Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 05:530: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:530: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:530: [SM] [0] Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 05:531: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:531: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:531: [SM] [0] Line 2074, friendly.sp::BuildingTakeDamage()
L 10/10/2013 - 05:532: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/10/2013 - 05:532: [SM] Displaying call stack trace for plugin "friendly.smx":
L 10/10/2013 - 05:532: [SM] [0] Line 2074, friendly.sp::BuildingTakeDamage()
fiala06 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 10-10-2013 , 14:03   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #208

Do you have any strangeness going on with buildings? For example, do you have engineer buildings which are spawned without an engineer actually building them? Perhaps a strange plugin that allows players to build buildings, which then stick around after the player has left the server?

Also, does it only happen right after a map change, stopping eventually?

The only ways I can see that error possibly happening are either you're using a very old version of the plugin, you've made custom modifications to it, or GetEntPropEnt(building, Prop_Send, "m_hBuilder"); is returning a value less than 0 or greater than MaxClients.

In the latter case, this should be fixed in the next update, I think. :\
__________________

Last edited by ddhoward; 10-10-2013 at 14:08.
ddhoward is offline
fiala06
AlliedModders Donor
Join Date: Mar 2009
Location: Eugene, OR
Old 10-10-2013 , 14:10   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #209

Quote:
Originally Posted by ddhoward View Post
Do you have any strangeness going on with buildings? For example, do you have engineer buildings which are spawned without an engineer actually building them? Perhaps a strange plugin that allows players to build buildings, which then stick around after the player has left the server?

Also, does it only happen right after a map change, stopping eventually?

The only ways I can see that error possibly happening are either you're using a very old version of the plugin, you've made custom modifications to it, or GetEntPropEnt(building, Prop_Send, "m_hBuilder"); is returning a value less than 0 or greater than MaxClients.

In the latter case, this should be fixed in the next update, I think. :\
Ahh so must be our sentry in the wall. My brother made our maps, and in our trade maps we have a button in spawn that can be engaged every 5 min for 30 seconds to help protect against spawn camping the door.

Last edited by fiala06; 10-10-2013 at 14:11.
fiala06 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 10-10-2013 , 14:16   Re: [TF2] Friendly Mode (v. 13.0807.0)
Reply With Quote #210

The map that I use this plugin on also has sentries that spawn without an engineer actually building them, but I don't get any error logs... Also, Friendly Mode only hooks OnTakeDamage on buildings that are actually BUILT, not just spawned. Have you noticed a trend that this error spam only happens for a short while after a map change? When the map is first loaded by the server, is the sentry there? Or perhaps your brother went the extra mile and had the sentry creation fire the player_builtobject event...

But yeah, I just fixed this; I'll upload the new version soonish.
__________________

Last edited by ddhoward; 10-10-2013 at 14:17.
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 16:46.


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