Forum

> > CS2D > Mods > Virus gamemode 2D [Need scripter]
Forums overviewCS2D overview Mods overviewLog in to reply

English Virus gamemode 2D [Need scripter]

13 replies
To the start Previous 1 Next To the start

old Virus gamemode 2D [Need scripter]

itsoxymoron
User Off Offline

Quote
Hi people, I'm wanna make a gamemode called 'Virus' from the Gmod Tower gamemode.

> Info:
Inspired by the multiplayer mode Virus, as immortalized by the popular Time Splitters franchise. Players must work together to contain the spread of the virus for a certain amount of time, or become infected by being touched by the infected player.

• Here I have a gameplay video :



To make this I need:

> LUA Scripters [obviously] ×
> Skins/Sprite Editors/Makers √
> Map Editors [I can do it] √
> People who want to help

And, We need:

> Virus body skin
When you was infected

> Survivors skins
For CT's and T's

> Weapons:

• 9mm.
• Dual Beretta with silencer.
• 'Flak hand gun'. [like a magnum]
• Sci-fi hand gun.
• Plasma Rifle.
• RCP 120.
• Sniper Rifle.
• Double Barrel shotgun.
• Sonic Dispersion Shotgun.
• TNT.
• Adrenaline.

• pix:
IMG:https://a6.sphotos.ak.fbcdn.net/hphotos-ak-snc7/s720x720/316768_1780436650029_1812813283_1192238_2086445756_n.jpg


> Maps:

• virus_aztec
• virus_dust
• virus_facility
• virus_hospital
• virus_metaldream
• virus_riposte
• virus_sewage
• And more!

No pix for now.

> Gamemode:

• The players wait 20 secs, then a player is selected by random.
• You need to survive 2 minutes.
• you get infected if you get hit.

[too easy]

If you want to help, just post your opinion here

Thanks!
edited 4×, last 24.09.11 11:14:13 pm

old Re: Virus gamemode 2D [Need scripter]

Apache uwu
User Off Offline

Quote
Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
addhook("second","_second")
addhook("leave","_leave")
addhook("startround","_startround")

function _second()
count=count+1
	if count>=20 then
		random=math.random(1,#player(0,"tableliving"))
		msg(string.char(169).."255255255"..player(player(0,"tableliving")[random],"name").." is the virus or something lol)
		parse("maket "..player(0,"tableliving")[random])
	end
end

function _leave(id)
	if id==player(0,"tableliving")[random] then
		parse("sv_restart")
	end
end

function _startround()
	count=0
end

--Add some time/round limit settings
edited 1×, last 23.09.11 07:27:52 pm

old Re: Virus gamemode 2D [Need scripter]

itsoxymoron
User Off Offline

Quote
Good, but in LUA, I need a sound when start the round, also when the x sec finished, and them, when they are the "last survivor" other sound, if he win, make a win sound, if he lose, a lose sound. [like the video]

Edit:

Its not working:

LUA ERROR: attempt to call a nil value
edited 1×, last 23.09.11 06:40:36 pm

old Re: Virus gamemode 2D [Need scripter]

mafia_man
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
count = 0 <-- write this here lol
function second()
count=count+1
     if count>=20 then
          random=math.random(1,#player(0,"tableliving"))
          msg(string.char(169).."255255255"..player(player(0,"tableliving")[random],"name").." is the virus or something lol)
          parse("maket "..player(0,"tableliving")[random])
     end
end

old Re: Virus gamemode 2D [Need scripter]

Bowlinghead
User Off Offline

Quote
Because the "second" hook is wrong.
In the function is an "_" missing!

Btw
More >

old Re: Virus gamemode 2D [Need scripter]

Kel9290
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
count=0
random=0

addhook("second","_second")
addhook("leave","_leave")
addhook("startround","_startround")

function _second()
count=count+1
     if count>=20 then
          random=math.random(1,#player(0,"tableliving"))
          msg(string.char(169).."255255255"..player(player(0,"tableliving")[random],"name").." is the virus or something lol")
          parse("maket "..player(0,"tableliving")[random])
     end
end

function _leave(id)
     if id==player(0,"tableliving")[random] then
          parse("sv_restart")
     end
end

function _startround()
     count=0
end

old Re: Virus gamemode 2D [Need scripter]

itsoxymoron
User Off Offline

Quote
user Bowlinghead has written
Because the "second" hook is wrong.
In the function is an "_" missing!

Btw
More >



LOL, now i die every time after count

LUA ERROR: sys/lua/vmod.lua:8: bad argument #2 to 'random' (interval is empty)

old Re: Virus gamemode 2D [Need scripter]

itsoxymoron
User Off Offline

Quote
user Bowlinghead has written
Yeah because you are the only one who is at life.
Make this with bots and it get fixed.


also with bots.look:
IMG:https://a2.sphotos.ak.fbcdn.net/hphotos-ak-ash4/s720x720/310231_1781552677929_1812813283_1193081_1668554595_n.jpg


If i die, or a bot die, everybody start to die

Edit:

I found other error.
LUA ERROR: sys/lua/vmod.lua:6: attempt to perform arithmetic on global 'count' (a nil value)

also the "random" should be stop because, continues making CT's to T's. i need only one, like a zombie mod.


Ok, now I have some weapons sprites, but I need a lua scripter
edited 3×, last 24.09.11 02:52:03 am

old Re: Virus gamemode 2D [Need scripter]

Kel9290
User Off Offline

Quote
More >
edited 1×, last 24.09.11 07:00:39 am

old Re: Virus gamemode 2D [Need scripter]

itsoxymoron
User Off Offline

Quote
F*ck yeah!, thank you!

> Next:

I need to add those sounds

waiting_forinfection1
waiting_forinfection2
waiting_forinfection3
waiting_forinfection4
waiting_forinfection5
waiting_forinfection6
waiting_forinfection7
waiting_forinfection8


Every sound have 20 seconds, and need to be played at random once. when finished, should make the sound of "infection"

Edit:

I added a glow lua

Edit 2:

Its possible to make a movable text?

• starts in center and goes to the left.
edited 2×, last 26.09.11 05:12:39 am

old Re: Virus gamemode 2D [Need scripter]

Kel9290
User Off Offline

Quote
somewhere in file archive
1
2
3
4
5
6
7
function zetimer()
     	random=math.random(1,#player(0,"tableliving"))
   	  msg(player(random,"name").." is the virus or something lol")
   	  parse("maket "..random)
  	   random="waiting_forinfection"..math.random(1,8)
   	  parse("sv_sound "..random)
end

old Re: Virus gamemode 2D [Need scripter]

itsoxymoron
User Off Offline

Quote
user Kel9290 has written
somewhere in file archive
1
2
3
4
5
6
7
function zetimer()
     	random=math.random(1,#player(0,"tableliving"))
   	  msg(player(random,"name").." is the virus or something lol")
   	  parse("maket "..random)
  	   random="waiting_forinfection"..math.random(1,8)
   	  parse("sv_sound "..random)
end


Oh yeah, now its better, but here i have other problem.

if everybody die, the sound must be stop, because, others sounds have 2:00 mins. and i dont want the sound continues in the next round
To the start Previous 1 Next To the start
Log in to reply Mods overviewCS2D overviewForums overview