¥Weeds¥ Gun Game v1.2 
12 comments ¥Weeds¥ Gun Game v1.2
Including Knife-Only Melee Killing Spree with Server Map Change, Joining Players Level Handicap, and Kevlar and Helmet Level and/or Kill Reward
Description
This Lua script adds a "Gun Game" deathmatch gameplay mode to Counter-Strike 2D for a "listen" server (when starting a new game), as well as for a dedicated server.
Note that this script is based on the original CS2D Gun Game script ("GunGame.lua"), but with several additional enhancements and features. These additions can easily be enabled, disabled, or changed by simply editing the fully-commented script file using Windows Notepad.
Lastly, note that it was NOT my goal when creating ¥Weeds¥ Gun Game to attempt to recreate the other fully-featured Gun Game scripts that may already be available, or create a COMPLETELY game-changing and life-changing experience!
But rather, my primary goal was simply to modify the original CS2D Gun Game script so that it would be a little bit more fun and usable (and easier to configure), all without changing too much of it's overall look and gameplay
(Click Spoiler for Enhancements and Features)
(Click Spoiler for complete readme and usage instructions, also included in the ZIP)
P.S. FYI, the start of my motivation for this was these messages of mine over in the CS2D forums, "Default GunGame.lua Script and MapChange Bug?" and "sv_restart resets mp_timelimit countdown?"
Including Knife-Only Melee Killing Spree with Server Map Change, Joining Players Level Handicap, and Kevlar and Helmet Level and/or Kill Reward
Description
This Lua script adds a "Gun Game" deathmatch gameplay mode to Counter-Strike 2D for a "listen" server (when starting a new game), as well as for a dedicated server.
Note that this script is based on the original CS2D Gun Game script ("GunGame.lua"), but with several additional enhancements and features. These additions can easily be enabled, disabled, or changed by simply editing the fully-commented script file using Windows Notepad.
Lastly, note that it was NOT my goal when creating ¥Weeds¥ Gun Game to attempt to recreate the other fully-featured Gun Game scripts that may already be available, or create a COMPLETELY game-changing and life-changing experience!
But rather, my primary goal was simply to modify the original CS2D Gun Game script so that it would be a little bit more fun and usable (and easier to configure), all without changing too much of it's overall look and gameplay

(Click Spoiler for Enhancements and Features)
(Click Spoiler for complete readme and usage instructions, also included in the ZIP)
P.S. FYI, the start of my motivation for this was these messages of mine over in the CS2D forums, "Default GunGame.lua Script and MapChange Bug?" and "sv_restart resets mp_timelimit countdown?"
edited 12×, last 05.01.13 08:52:42 am

Comments
12 comments



Log in!
You need to log in to be able to write comments!Log in
@BK, Yer welcome
P.S. I saw you in my server recently... you should hang around for a bit longer, WGG12 is working quite nicely

P.S. I saw you in my server recently... you should hang around for a bit longer, WGG12 is working quite nicely

Albeit, quite a bit of editing (without changing the overall feel of CS2D's original gun game).
Hehe, I'm especially proud of my handicapping routine <GRIN>
Anyhoo, new version above... added Kevlar and Helmet rewards (just like the CS/CS:CZ/DoD AMXModX plugins do)
Hehe, I'm especially proud of my handicapping routine <GRIN>

Anyhoo, new version above... added Kevlar and Helmet rewards (just like the CS/CS:CZ/DoD AMXModX plugins do)


Like.
You're newbie, and at least, you said that it's just edit.
Good luck in learning Lua!
You're newbie, and at least, you said that it's just edit.
Good luck in learning Lua!
@Jynxxx,
Actually, as far as I can tell, the maximum amount of weapon levels is *much* greater than 32... I meant to edit my readme stating that, but forgot to.
That being said, I'm not sure what the maximum would be. I myself have tested it with 64 weapon levels (and it seemed to function just fine), but I haven't tried any more levels than that.
BTW, my (previous, but now understood) confusion about the max 32-level thing was, in the original CS2D "GunGame.lua" script:
...which (as new as I am to those whole Lua thing), I first thought that the "sample.gg.level=initArray(32)" line set the total amount of weapon levels that could be added/used for the "sample.gg.wpn={45,48,49,30,38,20,21,10,4,50}" line.
I finally realized (several days ago) though that the "sample.gg.level=initArray(32)" was simply to keep track of EACH players *current* weapon level (of course, a maximum of "(32)" players in the game), and NOT to set the total amount of levels for the "sample.gg.wpn={45,48,49,30,38,20,21,10,4,50}" line <GRIN>.
Anyhow, yes, 45 weapon levels works just fine
I meant to edit my readme, but simply forgot :duh:
(Random musing: Hehe, I guess that my old QuickBASIC 4.5 days are fairly useless now, for Lua coding LOL!)
Actually, as far as I can tell, the maximum amount of weapon levels is *much* greater than 32... I meant to edit my readme stating that, but forgot to.
That being said, I'm not sure what the maximum would be. I myself have tested it with 64 weapon levels (and it seemed to function just fine), but I haven't tried any more levels than that.
BTW, my (previous, but now understood) confusion about the max 32-level thing was, in the original CS2D "GunGame.lua" script:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
function initArray(m)
local array = {}
for i = 1, m do
array[i]=0
end
return array
end
sample.gg.level=initArray(32)
sample.gg.kills=initArray(32)
sample.gg.wpn={45,48,49,30,38,20,21,10,4,50}
local array = {}
for i = 1, m do
array[i]=0
end
return array
end
sample.gg.level=initArray(32)
sample.gg.kills=initArray(32)
sample.gg.wpn={45,48,49,30,38,20,21,10,4,50}
...which (as new as I am to those whole Lua thing), I first thought that the "sample.gg.level=initArray(32)" line set the total amount of weapon levels that could be added/used for the "sample.gg.wpn={45,48,49,30,38,20,21,10,4,50}" line.
I finally realized (several days ago) though that the "sample.gg.level=initArray(32)" was simply to keep track of EACH players *current* weapon level (of course, a maximum of "(32)" players in the game), and NOT to set the total amount of levels for the "sample.gg.wpn={45,48,49,30,38,20,21,10,4,50}" line <GRIN>.
Anyhow, yes, 45 weapon levels works just fine

(Random musing: Hehe, I guess that my old QuickBASIC 4.5 days are fairly useless now, for Lua coding LOL!)
edited 1×, last 03.01.13 06:31:04 am



