Counter-Strike 2D

gamigo's speedy script

This is a Script for Counter-Strike 2D submitted by gamigo.

Yo, buddy. Join GameBanana, one of the oldest mod sites, and maximize your browsing experience.

  • Subscribe: Get notified when gamigo submits again.
  • Say Thanks: Show your appreciation by sending gamigo points.
  • Post: Give gamigo your thoughts on this Script.
  • Vote: Help gamigo win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Resistance is futile...

Sign up

Already a Bananite? Login

gamigo's speedy script

A script that lets your players be faster.

86 lines | 2 kb | Raw Code
Font size:
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
--------------------------------------------------
-- Speedy Players Lua Script by gamigo          --
-- Makes players be faster by slecting intensity--
--------------------------------------------------

if sample==nil then sample={} end
sample.classes={}

-----------------------
-- Commencing...     --
-----------------------
function initArray(m)
        local array = {}
        for i = 1, m do
                array[i]=0
        end
        return array
end
sample.classes.class=initArray(32)
function sample.classes.classmenu(id)
        menu(id,"Select Intensity,1|15ms,2|20ms,3|30ms,4|40ms,Ultra|50ms")     
end


-----------------------
-- Team and Intensity--
-----------------------
addhook("team","sample.classes.team")
function sample.classes.team(id,team)
        if (team>0) then
                sample.classes.classmenu(id)
        end
end


-----------------------
-- Server Action     --
-----------------------
addhook("serveraction","sample.classes.serveraction")
function sample.classes.serveraction(id)
        sample.classes.classmenu(id)
end


-----------------------
-- Intensity Menu    --
-----------------------
addhook("menu","sample.classes.menu")
function sample.classes.menu(id,menu,sel)
        if (menu=="Select Intensity") then
                if (sel>=0 and sel<=5) then
                        sample.classes.class[id]=sel
                        if (player(id,"health")>0) then
                                parse("killplayer "..id)
                        end
                end
        end
end


-----------------------
-- Intensities       --
-----------------------
addhook("spawn","sample.classes.spawn")
function sample.classes.spawn(id)
        -- Intensity 1
        if (sample.classes.class[id]<=1) then
                parse ("speedmod "..id.." 15")
        end
        -- Intensity 2
        if (sample.classes.class[id]==2) then
                parse ("speedmod "..id.." 20")
        end
        -- Intensity 3
        if (sample.classes.class[id]==3) then
                parse ("speedmod "..id.." 30")
        end
        -- Intensity 4
        if (sample.classes.class[id]==4) then
                parse ("speedmod "..id.." 40")
        end
        -- Are you nuts?
        if (sample.classes.class[id]==5) then
                parse ("speedmod "..id.." 50")
        end
end
This script will show a menu on startup making you choose what speed you want. It can be 15m/s(default), 20m/s, 30m/s, 40m/s, or Ultra, which is 50m/s!

I derived it from a sample script which is classes.lua but made it into this instead.

NOTE: You can choose it to be a LUA file. Just opn a LUA file with notepad, delete all contents, and paste the script below, and save it. And you can rename it to [the name of the map you want the scipt activated at].lua and put it at the maps folder. Then, you can run CS2D and then the map where you named it also after the LUA file (say, you renamed the LUA file to as_snow.lua, then run the map as_snow), and then it will be activated! (In that map only, thoguh.)

  • You must be a member

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share
About this module
This module lists all those involved in the creation of this Script.

Credits

Key Authors
gamigo
editor of script
Original Authors
Unreal Software
the whole script

Submitter

gamigo avatar
gamigo Offline
Member Joined 7 years ago

gamigo
Creator
About this module
This module lets you send a private message to the submitter (gamigo).
About this module
This module displays what game this Script is for.

Game

About this module
This module displays this Script's category.

Category

Stats

Posts
0
Views
1,714
Date Added
6 years ago
Dec 27 2009 @ 3:09am UTC
About this module
This module shows the average user rating of this Script.

Rating

  • Not yet rated
About this module
This module tells you what you can and cannot do with this Script.

License