English Player can jump Obstacles

20 replies
Goto Page
To the start Previous 1 2 Next To the start
04.09.11 03:16:20 pm
Up
DragonAwper
User
Offline Off
I Saw some Scripts that the player can jump obstacles, like on the Crysis 2D: 2 by Starkkz.
I read his Script but i didn't understand very well.

> I Want a Script that the players can Jump Obstacles when a ServerAction is Pressed.

Thanks
04.09.11 03:22:13 pm
Up
Yates
Reviewer
Offline Off
Will ruin the game play. Don't do it.
04.09.11 03:45:00 pm
Up
PeterToman
COMMUNITY BANNED
Offline Off
You can either place teleports over obstacles.
04.09.11 06:15:11 pm
Up
PyKemis
User
Offline Off
It's basically wall hack over obstacles, when you tab the use button it drains your energy until it runs out or if you tap e again.

It's really bugged since when you try to move while it's "jumping" it will lag your movements.

I don't recommend any game or game mod to have this feature.

More >
04.09.11 08:14:01 pm
Up
Starkkz
Moderator
Offline Off
Try this:

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
28
29
30
31
32
33
34
35
36
37
Air_Speed = 3
Air_Timer = 2500
PAir_Timer = {}
PSpeed = {}

function Millisecs()
     return os.clock() * 1000
end

addhook("always","Always")
function Always()
     for _, id in pairs(player(0,"table")) do
          if Millisecs() - PAir_Timer[id] <= 0 then
               local rad = math.rad(player(id,"rot"))
               local x = player(id,"x") + math.sin(rad) * Air_Speed
               local y = player(id,"y") - math.cos(rad) * Air_Speed
               if not tile(math.floor(x/32),player(id,"tiley"),"wall") then
                    parse("setpos "..id.." "..x.." "..player(id,"y"))
               end
               if not tile(player(id,"tilex"),math.floor(y/32),"wall") then
                    parse("setpos "..id.." "..player(id,"x").." "..y)
               end
          else
               if PSpeed[id] and PSpeed[id] == -100 then
                    PSpeed[id] = 0
                    parse("speedmod "..id.." 0")
               end
          end
     end
end

addhook("use","Jump")
function Jump(id)
     PAir_Timer[id] = Millisecs() + Air_Timer
     PSpeed[id] = -100
     parse("speedmod "..id.." -100")
end


You may press "E" to jump.
edited 2×, last 04.09.11 08:25:55 pm
lol
04.09.11 08:21:40 pm
Up
X-Files
User
Offline Off
addhook("always",Always")

true


addhook("always","Always")
04.09.11 08:24:41 pm
Up
Starkkz
Moderator
Offline Off
user X-Files has written:
addhook("always",Always")

true


addhook("always","Always")


I haven't noticed because I wasn't using an editor, anyways is not a GREAT bug.
lol
04.09.11 08:26:10 pm
Up
X-Files
User
Offline Off
"I wasn't using an editor"

me too just note pad
04.09.11 08:27:53 pm
Up
Yates
Reviewer
Offline Off
user X-Files has written:
"I wasn't using an editor"

me too just note pad

Notepad ++ ?
04.09.11 08:30:50 pm
Up
X-Files
User
Offline Off
user Yates has written:
user X-Files has written:
"I wasn't using an editor"

me too just note pad

Notepad ++ ?


no standart notepad
04.09.11 08:31:09 pm
Up
3RROR
User
Offline Off
user X-Files has written:
"I wasn't using an editor"

me too just note pad

Lol. Even Notepad's a editor program.
But it's pure shit.
IMG:http://gamerswins.com/images/ins/logo.png
04.09.11 08:32:54 pm
Up
Yates
Reviewer
Offline Off
user 3RROR has written:
user X-Files has written:
"I wasn't using an editor"

me too just note pad

Lol. Even Notepad's a editor program.
But it's pure shit.

I use Notepad ++
But normal notepad on every standard windows computer does suck. I agree.
04.09.11 08:33:14 pm
Up
X-Files
User
Offline Off
user 3RROR has written:
user X-Files has written:
"I wasn't using an editor"

me too just note pad

Lol. Even Notepad's a editor program.
But it's pure shit.


its simple i like it
04.09.11 08:39:57 pm
Up
IWhoopedPythagoras
BANNED
Offline Off
I wouldn't recommend to use the always hook... It's just buggy and shit.
04.09.11 09:01:53 pm
Up
Starkkz
Moderator
Offline Off
Then you don't know how to choose a hook, because it's the fastest hook one.
lol
04.09.11 11:33:32 pm
Up
PyKemis
User
Offline Off
user IWhoopedPythagoras has written:
I wouldn't recommend to use the always hook... It's just buggy and shit.


Actually if you want setpos to be smooth for client side using always is the best.
05.09.11 11:14:36 am
Up
IWhoopedPythagoras
BANNED
Offline Off
user PyKemis has written:
user IWhoopedPythagoras has written:
I wouldn't recommend to use the always hook... It's just buggy and shit.


Actually if you want setpos to be smooth for client side using always is the best.


Using timers is better. This will generate less overhead.
It's not wrong to use always hook, just be careful with it.. Sending images every 1/50 s can really cause lag for players and the server.
05.09.11 02:02:23 pm
Up
PyKemis
User
Offline Off
user IWhoopedPythagoras has written:
user PyKemis has written:
user IWhoopedPythagoras has written:
I wouldn't recommend to use the always hook... It's just buggy and shit.


Actually if you want setpos to be smooth for client side using always is the best.


Using timers is better. This will generate less overhead.
It's not wrong to use always hook, just be careful with it.. Sending images every 1/50 s can really cause lag for players and the server.


Well no, using something like timer(1--would just kill your internet just for jumping. On about 150-200 ping always will be much smoother. And for images it should never be put on always...unless it's like 1 image lol
05.09.11 06:02:33 pm
Up
DragonAwper
User
Offline Off
Thanks. I used the Starkkz Script.
It Worked very well.

> Close Topic
05.09.11 07:12:12 pm
Up
RAVENOUS
BANNED
Offline Off
real, this jump is way too long for a jump. And it seems to weird. Bad.
"A work of art is the unique result of a unique temperament." - Oscar Wilde
To the start Previous 1 2 Next To the start