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

Oh My, is it time to code again?


Post New Thread Reply   
 
Thread Tools Display Modes
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 09-12-2012 , 18:27   Re: Oh My, is it time to code again?
Reply With Quote #11

Mapchooser working on Classic modes now, on my test server. Haven't worked in stuff to handle gungame win conditions yet.
__________________
I'm a blast from the past!

Last edited by ferret; 09-12-2012 at 18:27.
ferret is offline
VJScope
Senior Member
Join Date: Jul 2012
Location: Finland
Old 09-12-2012 , 23:21   Re: Oh My, is it time to code again?
Reply With Quote #12

Quote:
Originally Posted by ferret View Post
Mapchooser working on Classic modes now, on my test server. Haven't worked in stuff to handle gungame win conditions yet.
I haven't had a problem with mapchooser... Well, sm_setnextmap isn't working and "say nextmap" isn't always showing right map.
__________________
Strange women lying in ponds distributing swords is no basis for a system of government. Supreme executive power derives from a mandate from the masses, not from some farcical aquatic ceremony.
VJScope is offline
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 09-12-2012 , 23:56   Re: Oh My, is it time to code again?
Reply With Quote #13

Depends on your setup. mapchooser doesn't understand CSGO's win limit method, or half-time team switches for keeping score. This causes round based votes to not trigger properly.
__________________
I'm a blast from the past!
ferret is offline
VJScope
Senior Member
Join Date: Jul 2012
Location: Finland
Old 09-13-2012 , 06:46   Re: Oh My, is it time to code again?
Reply With Quote #14

aaaaaa... We have changed maxrounds 0 and timelimit 20 so didn't know that. We hade maxrounds 21 but didn't have mapchooser on at that time.
__________________
Strange women lying in ponds distributing swords is no basis for a system of government. Supreme executive power derives from a mandate from the masses, not from some farcical aquatic ceremony.
VJScope is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-13-2012 , 11:35   Re: Oh My, is it time to code again?
Reply With Quote #15

Quote:
Originally Posted by ferret View Post
Depends on your setup. mapchooser doesn't understand CSGO's win limit method, or half-time team switches for keeping score. This causes round based votes to not trigger properly.
Is this just a combination of mp_winlimit, mp_match_can_clinch, and the switch_team event?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 09-13-2012 , 13:35   Re: Oh My, is it time to code again?
Reply With Quote #16

Not quite. mp_winlimit doesn't exist in CSGO (for all intents and purposes, it's there but set to 0).

I'll post the code when I get home. It's not complex but took a bit of trial and error. On round_end, you have to pull maxrounds and divide by 2 to build a winlimit. CSGO doesn't fire switch_team for half-time, unfortunately, but announce_phase_end is fired and seems to be a reliable hook for the moment. The end of map also fires announce_phase_end, but it fires cs_intermission first, so I use that (Probably completely unnecessarily) to avoid doing a score switch at the end. That gives us a point to swap the scores.

Another minor issue is I didn't locate an event for the warmup so I could reset scores (If they occur) post-warmup. If you're running logging you'll see that the world triggers events "round_warmup_start" and "round_warmup_end" but these can't be hooked. My rusty knowledge hasn't led me to an exact solution yet and I ultimately decided it wasn't worth the effort, since at worse it causes a map vote 1 round earlier.

There's an event for "player is on last gungame weapon" that I want to hook to bring a "winlimit" support for Arms Race. I haven't tested if it's actually fired yet though. I also need to double check the mechanics on demolition as there's a cvar that controls winning the map/round if a player reaches the last weapon.
__________________
I'm a blast from the past!
ferret is offline
nickCR
Junior Member
Join Date: Sep 2012
Old 09-13-2012 , 13:40   Re: Oh My, is it time to code again?
Reply With Quote #17

ferret! Great progress and thanks for the updates! Can't wait to see the mapchooser working right
nickCR is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 09-13-2012 , 14:13   Re: Oh My, is it time to code again?
Reply With Quote #18

All hail the ferret! A few of your plugins were the starting point for me learning the language <3.
__________________
thetwistedpanda is offline
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 09-13-2012 , 14:38   Re: Oh My, is it time to code again?
Reply With Quote #19

Code Counter Strike: Source roleplay plugin, that what we miss.
iGANGNAM is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-13-2012 , 14:47   Re: Oh My, is it time to code again?
Reply With Quote #20

Quote:
Originally Posted by iGANGNAM View Post
Code Counter Strike: Source roleplay plugin, that what we miss.
Except he's talking about coding CS:GO plugins (hence "new CSness").
__________________
Not currently working on SourceMod plugin development.
Powerlord 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 20:10.


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