Page 1 of 1

disable jump

Posted: 26 Aug 2009, 09:52
by Shazdeh
I'm trying to create a map where player has to walk the street. Player can jump over the cars, and it makes the map very easy. Can I disable the jump completely?

Re: disable jump

Posted: 26 Aug 2009, 12:37
by Razor
it is impossible but you can force to kill player when he is in air :)

Re: disable jump

Posted: 26 Aug 2009, 17:39
by Shazdeh
:lol: :lol:
Nice idea! How can I do that? is "IS CHAR FALLING" the command I should use?
Kinda sad that we can't script these type of stuff...

Re: disable jump

Posted: 26 Aug 2009, 17:42
by Sektor
You might be able to edit the handling file to make all cars too tall to jump but that's a bit messy since if you modify that file, it changes every level.

edit: You can't do that in GTA2, only in GTA1

Re: disable jump

Posted: 27 Aug 2009, 00:17
by Gustavob
Im quite shure you cant disable the jump, even killing the char when hes jumping (you can kill him if he's at Z 2.1 for example, but not jumping), because theres not a command like "IS_CHARACTER_JUMPING_ONSCREEN", and if you use debug and press C (it shows coordinates in debug mode), when you jump you see that you still stay at same level (Z 2.0, depending on the map normal floor level). Although you can still kill the player if he is on air/falling.

Re: disable jump

Posted: 27 Aug 2009, 13:56
by Shazdeh
@Sektor: This is a better idea. but, I can jump over buses. And which line in nyc defines cars height?

To kill the character, the document says that "you should not use this command [KILL CHAR] on a player controlled character." but apparently I can. It just kill the player. The problem is that this code:

Code: Select all


LEVELSTART 

WHILE (NOT(IS_CHAR_FALLING(player)))
DO_NOWT
ENDWHILE

KILL_CHAR(player)

LEVELEND

only runs when you fall of a building and does not work when you jump. :(

Re: disable jump

Posted: 27 Aug 2009, 16:01
by Sektor
It seems only GTA1 has that can't jump over car option but even on that, it still lets you go under cars.

Re: disable jump

Posted: 27 Aug 2009, 21:50
by Shazdeh
I see. Seems to me like a negative enhancement!

Two thing: third parameter of GIVE_WEAPON declares amount of ammo but it seems it doesn't work for AI chars.
and, have you ever run along the shots of the AI (MACHINE GUN) in a circle and you shot too? Your shots get curved! ;) never seen that before!

Re: disable jump

Posted: 27 Aug 2009, 21:57
by Gustavob
Shazdeh wrote: Two thing: third parameter of GIVE_WEAPON declares amount of ammo but it seems it doesn't work for AI chars.
and, have you ever run along the shots of the AI (MACHINE GUN) in a circle and you shot too? Your shots get curved! ;) never seen that before!
The AI Characters have automatic defined infinite ammo, and theres not how to define the ammo for them

about the curving shot, it works also for Silenced Machine Guns, and is a very cool trick to use in multiplayer (if opponent sees you have a machine gun, he'll try to avoid it walking around you, and the shot will follow him, even if he is behind you :) , and you dont even need to turn the player) and with AI against player