Forum

> > CS2D > General > L4D Lua Script Request
Forums overviewCS2D overviewGeneral overviewLog in to reply

English L4D Lua Script Request

18 replies
To the start Previous 1 Next To the start

old L4D Lua Script Request

silence_shadow
User Off Offline

Quote
Anyone Here Can Make Me A Lua Script Like L4D,I Need It To Support My Map That I'm Am Making.

Is It Possible That The Selection Of Characters Is Different In Each Team?
Like The CT's Can Only Choose Only On The Survivor Characters And T's
Can Only Choose The Infecteds In L4D.If So Heres The List:

Infecteds - Zombie

1.Boomer - 150hp,150armor,Gas Grenade,Gut Bomb,Claw
2.Smoker - 100hp,100armor,Smoke Grenade,Gut Bomb,Claw
3.Hunter - 120hp,120armor,Gut Bomb,Claw
4.Tanker - 250hp,250armor,Claw

If You Want You Can Add More Items Into Them

Abilities (Infecteds):

1.Boomer - Make Its Speed Slow
2.Smoker - (No Idea)
3.Hunter - When Presses Right Click While Holding A Claw It Can Dash
4.Tanker - (Same As The Smoker)

And For Those Infecteds That Don't Have Abilities You Can Add Some

Survivors - Survivors

-No Characters-

If Anyone Can Make The Skins It Will Be Great

Other Skins:

-I Also Need Some Skins For The Medicine Pills (For Bandage)
-I Already Found The Skins For The Medikit
-Need Skins For The Weapons (XM1014,M4A1,MAC 10,SCOUT,M3)
-Also The Skin For The Pipe Bomb For The Flare (The One That Infecteds
Chases And Then It Explodes

If You Got Suggestions Please Tell Me And If You Have Additional Skins
Please Make A Download Link.

Also If You Got Some Sound Loops (But I Already Got Some But Only Few)

And Don't Add The Knife On Players,So Increase The Speed Of All Players
So They Can Run And Walk Like Normal

old Re: L4D Lua Script Request

stormdrain
User Off Offline

Quote
Looks like two similar threads...
http://www.unrealsoftware.de/forum_posts.php?post=136126#lastpost

______________________________________________

Now for L4D Lua Script

silence_shadow has written
Is It Possible That The Selection Of Characters Is Different In Each Team?

In my mind, it could be possible with -if team(join) 0* or 1* then show menu 0 or 1-

*0 for T's and 1 for CT'S

silence_shadow has written
Infecteds - Zombie

1.Boomer - 150hp,150armor,Gas Grenade,Gut Bomb,Claw
2.Smoker - 100hp,100armor,Smoke Grenade,Gut Bomb,Claw
3.Hunter - 120hp,120armor,Gut Bomb,Claw
4.Tanker - 250hp,250armor,Claw

If You Want You Can Add More Items Into Them


-If the script allows player free selection, everyone would
select Tank.
-Is there any chance for Survivors to survive?

Needs more information about the progress in rounds.

old Re: L4D Lua Script Request

wups
User Off Offline

Quote
Found that the sounds to l4d already is in the original map.

"Steam\steamapps\common\left 4 dead\left4dead\sound\"
edited 1×, last 04.07.09 03:25:26 pm

old Re: L4D Lua Script Request

SQ
Moderator Off Offline

Quote
silence_shadow has written
1.Boomer - 150hp,150armor,Gas Grenade,Gut Bomb,Claw
2.Smoker - 100hp,100armor,Smoke Grenade,Gut Bomb,Claw
3.Hunter - 120hp,120armor,Gut Bomb,Claw
4.Tanker - 250hp,250armor,Claw

Your tread is same spam...
Use "Lua script help" Tread.

EDIT : DC , this tread was created later than other one you closed.
edited 4×, last 04.07.09 04:31:23 pm

old Re: L4D Lua Script Request

Admir
User Off Offline

Quote
I just want to ask here :|,
If we already got menu named "Extra Item"
and press it to buy but, How to give them immediately?
like Blazzingxx SuperHero Mod?

old Re: L4D Lua Script Request

SQ
Moderator Off Offline

Quote
Thats what you need? (say !buy to open menu)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
addhook("say","says")
function says(id,txt)
	if (txt=="!buy") then buymenus(id); end
end

function buymenus(id)
	menu(id,"Select Item,Super Armor|15000$")
end

addhook("menu","buymenus")
function buymenus(id,menu,sel)
dolars = player(id,"money")
	if (menu=="Select Item") then
		if dolars>14999 then
			if sel==1 then
				parse("equip "..id.." 83")
				parse("setmoney "..id.." "..money-15000)
			end
		else
			msg2(id,"©255000000You Dont have enough money!@C")
		end
	end
end
PS : I havent tested it. Maybe i have little mistake...
(cant test becouse Im hosting server.
edited 3×, last 04.07.09 05:07:47 pm

old Re: L4D Lua Script Request

Admir
User Off Offline

Quote
Blazzingxx has written
Thats what you need? (say !buy to open menu)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
addhook("say","says")
function says(id,txt)
	if (txt=="!buy") then buymenus(id); end
end

function buymenus(id)
	menu(id,"Select Item,Super Armor|15000$")
end

addhook("menu","buymenus")
function buymenus(id,menu,sel)
dolars = player(id,"money")
	if (menu=="Select Item") then
		if dolars>14999 then
			if sel==1 then
				parse("equip "..id.." 83")
				parse("setmoney "..id.." "..money-15000)
			end
		else
			msg2(id,"©255000000You Dont have enough money!@C")
		end
	end
end
PS : I havent tested it. Maybe i have little mistake...
(cant test becouse Im hosting server.


Yes, say !buy then menu out, but. how about add 2% speed to someone?

1
parse ("speedmod "..id.." "..player(id,"speedmod")+2)

like that

old Re: L4D Lua Script Request

SQ
Moderator Off Offline

Quote
If you want to buy speed until next map then you need use initray. That you want?
Or buy stuff for other player? "to someone?"

I dont get.
edited 1×, last 04.07.09 05:49:32 pm

old Re: L4D Lua Script Request

Admir
User Off Offline

Quote
buy item for himself, like he want buy Speed to increase him run speed. then, if he buy that Speed, he speed + 2%

old Re: L4D Lua Script Request

SQ
Moderator 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
addhook("say","says") 
function says(id,txt) 
	if (txt=="!buy") then buymenus(id); end 
end 

function buymenus(id) 
	menu(id,"Select Item,Speed bots|5000$") 
end 

addhook("menu","buymenus") 
function buymenus(id,menu,sel) 
dolars = player(id,"money") 
	if (menu=="Select Item") then 
		if dolars>14999 then 
			if sel==1 then 
				parse("speedmod "..id.." 25")
				parse("setmoney "..id.." "..money-5000)
				msg2(id,"©255000000You have bought speed bots!@C")
			end 
		else 
			msg2(id,"©255000000You Dont have enough money!@C") 
		end 
	end 
end
That was hard?
edited 1×, last 04.07.09 06:04:40 pm

old Re: L4D Lua Script Request

Admir
User Off Offline

Quote
hmm, you script got wrong there, and I remake it

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
addhook("say","says")
function says(id,txt)
     if (txt=="!buy") then buymenus(id); end
end

function buymenus(id)
     menu(id,"Select Item,Super Armor|15000$")
end

addhook("menu","buymenus")
function buymenus(id,menu,sel)
dolars = player(id,"money")
     if (menu=="Select Item") then
          if dolars>14999 then
               if sel==1 then
                    parse("equip "..id.." 83")
                    parse ("setmoney "..id.." "..player(id,"money")-1000) 
               end
          else
               msg2(id,"©255000000You Dont have enough money!@C")
          end
     end

it should be like this?
end

old Re: L4D Lua Script Request

SQ
Moderator 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
addhook("say","says") 
function says(id,txt) 
     if (txt=="!buy") then buymenus(id) ; end 
end 

function buymenus(id) 
     menu(id,"Select Item,Speed bots|5000$") 
end 

addhook("menu","buymen")
function buymen(id,menu,sel) 
	if (menu=="Select Item") then
		dolars = player(id,"money")
		if sel==1 then 
			if dolars>14999 then 
				parse("speedmod "..id.." 25") 
				parse("setmoney "..id.." "..dolars-5000) 
				msg2(id,"©255000000You have bought speed bots!@C")
			else 
				msg2(id,"©255000000You Dont have enough money!@C") 
			end 
		end
	end 
end
My problem was that I named 2 functions with same name (my fail) sorry.
This code works for me now

old Re: L4D Lua Script Request

Admir
User Off Offline

Quote
well, thanks for the help yah, also I want help this guy want L4D script, that why I asking and make it like Zombie Plague and L4D

old Re: L4D Lua Script Request

silence_shadow
User Off Offline

Quote
Still Don't Know What You Mean Guys

And You Won't Buy The Speed Its Already On The CT's
And You Won't Buy Anything.

The Only Thing I Need Is The Weapons And Abilities Of The T's Which Is The Infecteds,Thats All I Want.

old Pills here...

ERROR_LT
User Off Offline

Quote
Well i have the pills skin that you wanted and if you need i have a pipe bomb (he , air-strike) skin
edited 1×, last 16.11.11 02:44:13 pm

old l4d2d Mod, Skins, Sprites

ODST
User Off Offline

Quote
Go To This Site-->http://host-a.net/halfire/L4D22D(0.118%20ContentplusGfx%20Update).zip
edited 2×, last 08.09.10 11:57:18 pm
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview