Files

> > CS2D > Lua Scripts > ¥Weeds¥ Gun Game v1.2
Files overviewCS2D overviewLua Scripts overview

English ¥Weeds¥ Gun Game v1.2 >

12 comments7 kb, 469 Downloads

old ¥Weeds¥ Gun Game v1.2

RichNagel
User Off Offline

¥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

Spoiler >
(Click Spoiler for Enhancements and Features)

Spoiler >
(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
Approved by GeoB99

Download Download

7 kb, 469 Downloads

Comments

12 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

RichNagel
User Off Offline

@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

old

Saski
GAME BANNED Off Offline

Thanks For This Lua






Message From black knight
I like it!

old

RichNagel
User Off Offline

Updated version with a few additions (see version history at the bottom of the second spoiler).

old

Big Bang Mafia
User Off Offline

for a beginner in lua you are pretty good. Even you just edited it.
I like it!

old

RichNagel
User Off Offline

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)

old

Infinite Rain
Reviewer Off Offline

Like.
You're newbie, and at least, you said that it's just edit.

Good luck in learning Lua!
I like it!

old

RichNagel
User Off Offline

@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:

1
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}

...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!)
edited 1×, last 03.01.13 06:31:04 am

old

Jynxxx
User Off Offline

You should add up to 45 rounds.

old

mafia_man
User Off Offline

Here's a like from user mafia_man because you're new to lua.
I like it!

old

Fabro
User Off Offline

mNMNMNM Its okay
I like it!

old

RichNagel
User Off Offline

Screenies as requested (but after all, it is just a gun game <grin>)

old

Fabro
User Off Offline

u can put screens ?
I like it!
To the start Previous 1 Next To the start