Files

> > CS2D > Lua Scripts > Sharpshooter (Black Ops Remake) (Update)
Files overviewCS2D overviewLua Scripts overview

English Sharpshooter (Black Ops Remake) (Update) >

16 comments3 kb, 543 Downloads

old Sharpshooter (Black Ops Remake) (Update)

Bowlinghead
User Off Offline

Hello,
this Script is a remake from the Call of Duty: Black Ops - Sharpshooter mode.

Update: I just remade the whole code and fixed as much bugs as I found. If there are still bugs please write a comment or write me a message. Thanks!

How does this script work?
All players are against each other and spawn randomly.
Every minute a new weapon is rolled and equiped to everybody until the next gun gets rolled (IDs= 1 until 49)
A round ends when a player made 30 kills.

What was the update?
This script has more comments than commands (haha). Everything should be easy to understand. I also used arrays a lot which give you the possibilty to change small settings on a comfortable way.

Ideas of what you can add or Todo list:
- database of amount of wins/loss (+ using real save/load functions)
- combine this and the One in the Chamber mod
- intern stuff (read comments in script to get an idea)

How to install?
Autorun - fast easy and most recommend:
     .1 go to \Counter Strike 2D\sys\lua\autorun\ and extract sharpshooter.lua.

Manual - slow but you have a better overview of your scripts:
     .1 go to \Counter Strike 2D\sys\lua\ and extract sharpshooter.lua
     .2 open CS2D -> New Game -> More Settings -> mp_luaserver = sharpshooter.lua -> Apply

Server.lua - slow but you have a better overview of your multiple scripts:
     .1 go to \Counter Strike 2D\sys\lua\ and extract sharpshooter.lua
     .2 open server.lua and add a new line dofile(sys/lua/sharpshooter.lua)

Do what ever you want with this script. For whatever reason the archive explorer doesnt show you the script but it actually exists. Sorry for that (7zip fail?)
edited 6×, last 29.04.15 10:37:10 pm
Approved by GeoB99

Download Download

3 kb, 543 Downloads

Comments

16 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

Bowlinghead
User Off Offline

I take my ideas from by brain.
I saw that gamemode and then I had an idea .
The same like my other one in the chamber script.

german things:
More >

old

SilentDash
User Off Offline

Very good Bowglinhead from where you takes youre ideas?
german things:
More >
I like it!

old

Bowlinghead
User Off Offline

@ Textual:
Your version is right, but weapons like Redflag,bomb,blue flag,defuse kit,medikit,ammo are in your script too. So thats the problem why I use my method because my method can be easyer mod able if a player dont want a weapon (example= Laser)...
@ Mech R:
You can edit it Thats why I upload the picture with the weapons IDs. Only delete the weaponId in this table and the weapons dont come anymore.

old

Mech R
COMMUNITY BANNED Off Offline

Good idea! Random weapons every minute? Hm... are if choosed knife? Or superarmor O_O?
I like it!

old

Apache uwu
User Off Offline

1 line version...if you're worried about lines.

1
2
3
local c={} for i=1,88 do if itemtype(i,"name")~="" then table.insert(c,i) end end
--vs
local c = {1,2,3,4,5,6,10,11,20,21,22,23,24,30,31,32,33,34,35,36,37,38,39,40,41,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,61,62,64,65,67,68,69,70,71,72,73,74,75,76,77,78,79,80,82,83,84,85,86,87,88}
I like it!

old

Bowlinghead
User Off Offline

Oh thx! It has the same effect :D.

old

Apache uwu
User Off Offline

Actually this method could save you some time.

1
2
3
4
5
6
local c={}
for i=1,88 do
	if itemtype(i,"name")~="" then
		table.insert(c,i)
	end
end
I like it!

old

Bowlinghead
User Off Offline

yeah. why not? I cant do it over more lines...
I cant use "for c=1,88 do" because of laggs and nil weapons (e.g. weaponID 25 ==nil).

old

Apache uwu
User Off Offline

1
local c = {1,2,3,4,5,6,10,11,20,21,22,23,24,30,31,32,33,34,35,36,37,38,39,40,41,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,61,62,64,65,67,68,69,70,71,72,73,74,75,76,77,78,79,80,82,83,84,85,86,87,88}

That is considered 1 line?
I like it!

old

Bowlinghead
User Off Offline

i wanna laser every round

old

secritek
User Off Offline

lol i wanna RPG every round its cool script man
I like it!

old

Bowlinghead
User Off Offline

Thank you :D.
Yeah. Yasday show me this "trick" to make the script muuuch shorter!

If I didn't know this "trick", I may did all 88 Options.
The "trick" from Yasday is cool
EDIT: Shit I saw a bug
edited 1×, last 06.08.11 05:50:20 am

old

Ultimate programmer
BANNED Off Offline

Nice. I will say about 20 lines:
The program's sourcecode must be shorter as it can be possible-it is the art of programming

I will rate awesome for make your rating better
I like it!

old

Sens0r
User Off Offline

that´s off topic i write a pm
I like it!

old

Bowlinghead
User Off Offline

Why I confuse you?
LOL. Why are you online at this time? o.o

old

Sens0r
User Off Offline

I can say its mine?
u confuse me but the script is nice
I like it!
To the start Previous 1 Next To the start