Quote:
Originally Posted by Gus
- A command for deactivating running mode ("ERR: Reference is read-only)
|
You can limit the speed in onMain or onPlayer:
Pseudocode/code:
if (p.xSpeed > value) p.xSpeed = value;
if (p.xSpeed < -value) p.xSpeed = -value;
p.jumpStrength = othervalue;
Or you can use speed = sqrt(p.xSpeed^2 + p.ySpeed^2) and limit that one, it all depends on how you want it to be limited.
Quote:
Originally Posted by Gus
- Making the ammo pickups give you more or less ammunition (I tried var[0-100] unsuccessfully)
- Making some enemies hurt you more than 1 HP
- Maybe also making the maximum ammunitions higher than 99 (I had no problem making them LOWER than 99)
|
It is possible to code this, if you want i can give you a pseudocode/code for it.
Quote:
Originally Posted by Gus
- Making the max health higher or lower than 5 even in SP mode
|
In multiplayer use jjChat("maxhealth x"), i don't know if this works in sp too.
Quote:
Originally Posted by Gus
- A command for deactivating direction changes in midair (if the player isn't standing on the ground or a platform, the direction keys do nothing)
|
If by this you mean when the player jumps it should keep it's xSpeed, then it should be possible to do this with AS.
As for the other stuff, i don't think it's possible yet to do this in AngelScript, correct me if i'm wrong
__________________
[13:07:13] *** Foly is on a KILLING SPREE!
[13:07:14] *** you killed yourself
[13:07:14] *** Foly was looking good but died instead...
|