This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Reducing deployed stickies does not work for variants


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
montymintypie
Junior Member
Join Date: Jun 2012
Old 11-09-2012 , 02:28   Reducing deployed stickies does not work for variants
Reply With Quote #1

I'm trying to limit deployed stickies to 2 on my SOAP DM server, but I'm having some troubles. It only works on the original, and none of the strange/festive variants. Some help would be appreciated :\

Code:
"custom_weapons_v3"
{
        "*"
        {
                "20,207,661,797,806,886,895,904,913" // stickies
                {
                        "quality"       "0"
                        "level"         "1"
                        
                        "1"             "89 ; -6" //less deployed stickies
                }
                "130" // scottish resistance
                {
                        "quality"       "0"
                        "level"         "1"

                        "1"             "89 ; -12" //less deployed stickies
                }
        }
}
montymintypie is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 11-09-2012 , 04:19   Re: Reducing deployed stickies does not work for variants
Reply With Quote #2

I'm pretty sure "20,207,661,797,806,886,895,904,913" isn't valid markup.
__________________

Last edited by DarthNinja; 11-09-2012 at 04:22.
DarthNinja is offline
montymintypie
Junior Member
Join Date: Jun 2012
Old 11-09-2012 , 08:14   Re: Reducing deployed stickies does not work for variants
Reply With Quote #3

Quote:
Originally Posted by DarthNinja View Post
I'm pretty sure "20,207,661,797,806,886,895,904,913" isn't valid markup.
I was going by the conventions in most other sourcemod plugin config files (I think it's YAML? not sure). I've tried splitting them up and it still does not work.

Also, at least for me the sco res section does not apply either. It still has full stickies deployed.
montymintypie is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-09-2012 , 09:15   Re: Reducing deployed stickies does not work for variants
Reply With Quote #4

The description of the attribute implies that the number is the number of stickybombs allowed out.

Specifically, if you set the value to 2, the text description would be
2 max pipebombs out

Having said that, this is an unused attribute and there's no guarantee that unused attributes actually work.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
montymintypie
Junior Member
Join Date: Jun 2012
Old 11-09-2012 , 09:22   Re: Reducing deployed stickies does not work for variants
Reply With Quote #5

I believe it actually reduces the max stickies out, and in fact it works absolutely fine for the stock sticky launcher - firing the third sticky detonates the first as it should. It's just odd as it does not seem to work (at least for me), on the arrange and festive variants.

Perhaps I should split it up and define quality 5 (ir whatever strange is, on mobile so can't check easily) for the variants? Not exactly sure what troubleshooting experimentation I should go through.
montymintypie is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-09-2012 , 09:26   Re: Reducing deployed stickies does not work for variants
Reply With Quote #6

Quote:
Originally Posted by DarthNinja View Post
I'm pretty sure "20,207,661,797,806,886,895,904,913" isn't valid markup.
It isn't.
__________________
asherkin is offline
montymintypie
Junior Member
Join Date: Jun 2012
Old 11-09-2012 , 09:30   Re: Reducing deployed stickies does not work for variants
Reply With Quote #7

Quote:
Originally Posted by asherkin View Post
It isn't.
Apart from the wildcard *, is there a syntactically valid way to select multiple defindexes to have the attributes applied to?
montymintypie is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-09-2012 , 09:32   Re: Reducing deployed stickies does not work for variants
Reply With Quote #8

Quote:
Originally Posted by montymintypie View Post
Apart from the wildcard *, is there a syntactically valid way to select multiple defindexes to have the attributes applied to?
No.
__________________
asherkin is offline
montymintypie
Junior Member
Join Date: Jun 2012
Old 11-09-2012 , 15:54   Re: Reducing deployed stickies does not work for variants
Reply With Quote #9

Quote:
Originally Posted by asherkin View Post
No.
I'll attempt to modify the code to make this possible then.
montymintypie 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:00.


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