English Sharpshooter (Black Ops Remake) (Update) icon

16 comments
06.08.11 01:03:00 am
like 6 like it!
3 kb, 180 Downloads
Bowlinghead
User
Offline Off
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
ok This file has been reviewed and approved by Fraizeraust (11.06.17 10:45:26 am)

Comments

16 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
19.09.11 09:08:42 pm
Up
Bowlinghead
User
Offline Off
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 >
17.09.11 01:41:45 am
like I like it!
Up
SilentDash
User
Offline Off
Very good Bowglinhead from where you takes youre ideas?
german things:
More >
29.08.11 03:28:08 pm
Up
Bowlinghead
User
Offline Off
@ 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.
28.08.11 11:00:53 am
like I like it!
Up
Mech R
COMMUNITY BANNED
Offline Off
Good idea! Random weapons every minute? Hm... are if choosed knife? Or superarmor O_O?
27.08.11 04:53:25 am
like I like it!
Up
PyKemis
User
Offline Off
1 line version...if you're worried about lines.

Code:
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}
26.08.11 03:35:11 pm
Up
Bowlinghead
User
Offline Off
Oh thx! It has the same effect :D.
26.08.11 05:17:12 am
like I like it!
Up
PyKemis
User
Offline Off
Actually this method could save you some time.

Code:
1
2
3
4
5
6
local c={}
for i=1,88 do
     if itemtype(i,"name")~="" then
          table.insert(c,i)
     end
end
26.08.11 04:58:43 am
Up
Bowlinghead
User
Offline Off
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).
26.08.11 03:25:51 am
like I like it!
Up
PyKemis
User
Offline Off
Code:
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?
09.08.11 01:08:00 pm
Up
Bowlinghead
User
Offline Off
i wanna laser every round
07.08.11 01:00:26 am
like I like it!
Up
secritek
User
Offline Off
lol i wanna RPG every round its cool script man
06.08.11 03:17:49 am
Up
Bowlinghead
User
Offline Off
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
06.08.11 02:20:21 am
like I like it!
Up
Ultimate programmer
BANNED
Offline Off
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
06.08.11 02:01:53 am
like I like it!
Up
Sens0r
User
Offline Off
that´s off topic i write a pm
06.08.11 01:28:11 am
Up
Bowlinghead
User
Offline Off
Why I confuse you?
LOL. Why are you online at this time? o.o
06.08.11 01:25:10 am
like I like it!
Up
Sens0r
User
Offline Off
I can say its mine?
u confuse me but the script is nice
To the start Previous 1 Next To the start