home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Walk speed | gravity var

by Q009 on 06/05/2008 16:59, 31 messages, last message: 06/23/2008 09:19, 8180 views, last view: 05/05/2024 00:49, closed on 06/23/2008 09:48

Hi!
I'm making a mod but i dont known how to make "GRAVITY" and "maxspeed" var.
I have tried: VAR(GRAVITY, 0, 200, 1000);
VAR(maxspeed, 8, 100, 320);

Please for help.

Go to first 20 messagesGo to previous 20 messages    Board Index   

#12: hmm

by fhjdskconorfhsdjk on 06/08/2008 04:23

I was trying to do this a while ago, I got it to work, but I forgot how to. I had like variables for every to allow easy changes.

reply to this message

#13: Re: ..

by blablablablablablablablabla on 06/09/2008 18:33, refers to #5

Don\'t help him, he is cheating allways around in Sauerbraten, flying, map modifieng, etc. ...

reply to this message

#14: Re: ..

by Q009 on 06/10/2008 15:12, refers to #13

Not flying!

reply to this message

#15: ..

by Hero on 06/10/2008 15:55

just jumping to heaven :)

reply to this message

#16: Re: ..

by hfgconorjhg on 06/10/2008 16:06, refers to #13

Excuse him for being curios...I hate expecting the worst from people right away :(

reply to this message

#17: Re: ..

by Q009 on 06/10/2008 17:12, refers to #15

Not exacly... 10 m higher jumps =P
http://youtube.com/watch?v=U0XR1FN-nys

reply to this message

#18: ..

by {Qs}Homicidal on 06/10/2008 19:25

no he makes hacks let him figure it out him self

reply to this message

#19: ..

by Q009 on 06/10/2008 21:44

9blah-blah-blah.......... =X

reply to this message

#20: Re: ..

by constchar* on 06/15/2008 12:49, refers to #19

I recently did this when I was adding footsteps
and the ability to "walk" instead of running.

The solution is simple really, fpsent
inherits dynent which in turn inherits
fpsent; which has a float variable called
"maxspeed".
So goto "game.h", once there look for "fpsent", around like 334, and in the fpsent::respawn function (Looks like "void respawn" in the code), around line 368,
add "maxspeed = 100f;" (100 is the default) and there you go!

reply to this message

#21: Re: ..

by constchar* on 06/15/2008 12:51, refers to #20

Sorry, I forgot to mention that you should add that after:

dynent::reset();
fpsstate::respawn();

So your resulting code should look like:

void respawn()
{
dynent::reset();
fpsstate::respawn();
lastaction = 0;
lastattackgun = gunselect;
attacking = false;
lasttaunt = 0;
lastpickup = -1;
lastpickupmillis = 0;
superdamage = 0;
maxspeed = 100f; // < This is the newly added line
}

reply to this message

#22: Re: ..

by MovingTarget on 06/15/2008 14:07, refers to #20

lol I did the exact same things a while ago! I also added stamina (the more you jump, the lower you jump, and it slowly recharges).

reply to this message

#23: Re: ..

by Q009 on 06/15/2008 15:49, refers to #21

Don't work

reply to this message

#24: Re: ..

by constchar* on 06/15/2008 21:58, refers to #23

Do you know anything about programming?
You might be running the release build but
compiling a debug build, the default configuration, because this code works for sure since I did exactly that two days ago.

reply to this message

#25: Re: ..

by Q009 on 06/16/2008 11:09, refers to #24

Yes i known as good C++ i can add some code lines to Sauerbraten

reply to this message

#26: ..

by leim1901 on 06/16/2008 20:03

Gravity:

In physics.cpp, replace "float GRAVITY = 200.0f;"
with
VARP(GRAVITY, 0, 200.0, 1000.0);

its done. I have not ever done a Maxspeed var.

please do not abuse gravity mod :)

reply to this message

#27: ..

by Fischkopf on 06/16/2008 20:35

SLIDE SPEED IS TOO SLOW IN CVS -.-

reply to this message

#28: Re: ..

by sldfjsdlfjsldfjlsnc,mxnm,vnlkesjfkjld on 06/17/2008 18:46, refers to #26

great, he WILL ABUSE THAT!!!!

reply to this message

#29: ..

by leim1901 on 06/18/2008 01:13

You don't know that for sure. I have experienced first hand where I go into a forum, ask for help, but people automatically assume worst case scenario. He asked, I gave. If he abuses it, thats why the wise fathers of multiplayer gaming invented kick/ban.

reply to this message

#30: Re: ..

by noerrorsfound(deletescookies) on 06/22/2008 12:48, refers to #29

It's pretty obvious by his cheating video on YouTube that he doesn't want this information just because he's curious.

A commenter asked, "cool where can I download it" and he responded:
"Sauerbraten CTF edition released - my web site with download will be available soon."

I agree we shouldn't always assume the worst but in this case it's not just a wild assumption. He's dumb enough to ask how to make cheats for the game on its official forum and we're dumb enough to help him.

reply to this message

#31: ..

by {Qs}Homicidal on 06/23/2008 09:19

I WOULD LIKE TO THANK THE RETARDS HERE FOR HELPING THIS ASS HAT CHEAT NOW HE HAS JUMP RUN SPEED AND MELEE WEAPON HAX KNOW NAMES ARE OPENSUSE Q009,BOUNCYBALL TO ALL SEVER ADMINS pleae add this ip 79.184.xx.xx to your banlist also baning him off the master server will help

reply to this message

Go to first 20 messagesGo to previous 20 messages    Board Index   


Thread closed!

This thread has been closed, which is why you can't post any more messages in it.


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53872648 visitors requested 71647853 pages
page created in 0.018 seconds using 10 queries
hosted by Boost Digital