Forum

> > CS2D > Mods > Virus gamemode 2D [Need scripter]
ForenübersichtCS2D-Übersicht Mods-ÜbersichtEinloggen, um zu antworten

Englisch Virus gamemode 2D [Need scripter]

13 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Virus gamemode 2D [Need scripter]

itsoxymoron
User Off Offline

Zitieren
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!
4× editiert, zuletzt 24.09.11 23:14:13

alt Re: Virus gamemode 2D [Need scripter]

Apache uwu
User Off Offline

Zitieren
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
1× editiert, zuletzt 23.09.11 19:27:52

alt Re: Virus gamemode 2D [Need scripter]

itsoxymoron
User Off Offline

Zitieren
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
1× editiert, zuletzt 23.09.11 18:40:36

alt Re: Virus gamemode 2D [Need scripter]

mafia_man
User Off Offline

Zitieren
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

alt Re: Virus gamemode 2D [Need scripter]

Bowlinghead
User Off Offline

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

Btw
Mehr >

alt Re: Virus gamemode 2D [Need scripter]

Kel9290
User Off Offline

Zitieren
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

alt Re: Virus gamemode 2D [Need scripter]

itsoxymoron
User Off Offline

Zitieren
user Bowlinghead hat geschrieben
Because the "second" hook is wrong.
In the function is an "_" missing!

Btw
Mehr >



LOL, now i die every time after count

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

alt Re: Virus gamemode 2D [Need scripter]

itsoxymoron
User Off Offline

Zitieren
user Bowlinghead hat geschrieben
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
3× editiert, zuletzt 24.09.11 02:52:03

alt Re: Virus gamemode 2D [Need scripter]

Kel9290
User Off Offline

Zitieren
Mehr >
1× editiert, zuletzt 24.09.11 07:00:39

alt Re: Virus gamemode 2D [Need scripter]

itsoxymoron
User Off Offline

Zitieren
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.
2× editiert, zuletzt 26.09.11 05:12:39

alt Re: Virus gamemode 2D [Need scripter]

Kel9290
User Off Offline

Zitieren
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

alt Re: Virus gamemode 2D [Need scripter]

itsoxymoron
User Off Offline

Zitieren
user Kel9290 hat geschrieben
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Mods-ÜbersichtCS2D-ÜbersichtForenübersicht