English Old Movement icon

10 comments
26.12.09 11:36:09 am
like 4 like it!
953 b, 239 Downloads
Heartless Soldier
User
Offline Off
Do you remember older cs2d versions where the movement was different to the newest versions?
(When you move in diagonal your player got more speed)

Well, this script simulates that.


To set them just search into the script:

speeddiag = To set the speed at diagonal movement
speedstra = To set the speed at diagonal movement

9 is the default value for speeddiag.
-2 is the default value for speedstra.


DOESN'T WORK WITH NORMAL GAME (PLAYER WITH ID 1 BUGGS IDK WHY :/) IT'S FOR DEDICATED SERVERS. (IF YOU WANT TO USE IT BY NORMAL GAME YOU HAVE TO CREATE A GAME AND MAKE YOU SPECTATOR TO OCUPATE THE ID 1)


Enjoy it and Good luck,

Bye!
image
ok This file has been reviewed and approved by Fraizeraust (02.05.17 06:17:43 pm)

Comments

10 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
18.06.19 02:27:46 pm
like I like it!
Up
SamuraiXXX
User
Offline Off
good script
09.11.10 03:26:06 am
Up
Heartless Soldier
User
Offline Off
@Flood: It's perfect. I've already shortened it too. Ill reupload it with yours (if you let me f course)
16.09.10 07:23:19 am
like I like it!
Up
FlooD
GAME BANNED
Offline Off
i made a MUCH more efficient version
Code:
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
--Made by FlooD
--Credits to NasH/N.B.K. for original idea and script.
--My version is just a lot simpler and shorter.
function initArray(m)
     local array = {}
     for i=1,m do
          array[i]=0
     end
     return array
end
px=initArray(32)
py=initArray(32)
addhook("spawn","s")
function s(p)
     px[p]=player(p,"x")
     py[p]=player(p,"y")
end
addhook("move","m")
function m(p)
     local x,y=player(p,"x"),player(p,"y")
     if (x-px[p])==0 or (y-py[p])==0 then
          parse("speedmod "..p.." -2")
     else
          parse("speedmod "..p.." 9")
     end
     px[p],py[p]=x,y
end
29.05.10 08:00:16 am
Up
connor34
User
Offline Off
DC has right i did it one time my cs2d isnt work anymore
20.05.10 11:52:04 am
Up
Heartless Soldier
User
Offline Off
Yes you are right, i made this code a time ago..
20.05.10 07:26:31 am
like I like it!
Up
palomino
User
Offline Off
No tabs? Oh my...
20.05.10 01:19:14 am
Up
DC
Admin
Offline Off
using NO tabs in your code is one of the worst things you can do while scripting/programming
20.05.10 01:16:58 am
like I like it!
Up
FlooD
GAME BANNED
Offline Off
lol nash seems pretty cool..
the script itself looks very redundant...
i'm certain that it is possible to shorten the script by at least 50%.
actually, i think you only need 1 if-then-else statement. (i.e. if (movement=straight) then (speedmod stra) else (speedmod speeddiag))
20.05.10 12:41:17 am
Up
Heartless Soldier
User
Offline Off
Thank you :).
What a coincidence, i started to improve it last week.
19.05.10 07:40:12 pm
like I like it!
Up
hundesohn
User
Offline Off
lol
not bad
To the start Previous 1 Next To the start