How do i Edit movement speed? |
by HaXBoX
on 07/12/2008 18:49, 56 messages, last message: 08/02/2008 00:30, 35173 views, last view: 05/18/2024 22:26, closed on 08/02/2008 00:32 |
|
anyone know how to edit movement speed?
whats the file name?
my player moves too fast
thanks
|
|
Board Index
|
|
#1: .. |
by Max of S2D [Fr]
on 07/12/2008 18:54
|
|
That's because you are in a vehicle. Now shut up and drive.
</privateJoke>
reply to this message
|
|
#2: .. |
by HaXBoX
on 07/12/2008 22:51
|
|
Anybody?
reply to this message
|
|
#3: Re: .. |
by SheeEttin
on 07/12/2008 23:15, refers to #2
|
|
Probably src/engine/physics.cpp.
You may also be interested in this: http://www.slash7.com/pages/vampires
reply to this message
|
|
#4: Re: .. |
by MovingTarget
on 07/12/2008 23:30, refers to #3
|
|
More like src/shared/ents.h
reply to this message
|
|
#5: .. |
by {Qs}Homicidal
on 07/13/2008 00:39
|
|
wee help one more moron make hax
reply to this message
|
|
#6: Re: .. |
by noerrorsfound(deletescookies)
on 07/13/2008 01:48, refers to #5
|
|
I love hax and I enjoy haxoring and haxing.
reply to this message
|
|
#7: .. |
by TetrisMaster512
on 07/13/2008 02:38
|
|
Quick note:
To prevent cheating, the network source code has been closed off, so you won't be able to connect to the masterserver if you recompile. Other wise can't you just use /gamespeed?
reply to this message
|
|
#8: Re: .. |
by Hirato Kirata
on 07/13/2008 03:37, refers to #7
|
|
that's for cube only, not sauerbraten.
fyi, the network source isn't closed off, cube's source was just given an incompatible protocol too that of the release binaries
and Sheeetin's right, the answers are in physics.cpp
reply to this message
|
|
#9: Re: .. |
by MovingTarget
on 07/13/2008 03:46, refers to #8
|
|
No, the player speed, in cubes-per-second, is in ents.h.
reply to this message
|
|
#10: Re: .. |
by Hirato Kirata
on 07/13/2008 04:28, refers to #9
|
|
that's where it's defined, not set or modified.
what you want to do is modify the modifyvelocity() function in physics.cpp, to use an extern multiplier, (eg, /movespeed) to multiply the player's maxspeed, sort of like /floatspeed
reply to this message
|
|
#11: Re: .. |
by SheeEttin
on 07/13/2008 04:43, refers to #10
|
|
So I was right? Heh. That was a total guess. :)
reply to this message
|
|
#12: Re: .. |
by MovingTarget
on 07/13/2008 05:07, refers to #10
|
|
Of course it's set there. What do you think maxspeed(100) does in the physent constructor?
reply to this message
|
|
#13: .. |
by Q009
on 07/13/2008 15:10
|
|
dude! in ents.h:
find this:
physent : blah, blah, blah, maxspeed(100),
reply to this message
|
|
#14: .. |
by HaXBoX
on 07/13/2008 20:55
|
|
then i need to compile it?
reply to this message
|
|
#15: Re: .. |
by tentus_
on 07/13/2008 22:55, refers to #14
|
|
Yes. If (when) you get compiler errors, be sure to use the search feature of the forum before asking for help.
reply to this message
|
|
#16: .. |
by username!!1
on 07/14/2008 03:19
|
|
You all talk about:
player1->maxspeed=(float)newmaxspeed;
in fps.cpp?
reply to this message
|
|
#17: Re: .. |
by Q009
on 07/14/2008 14:58, refers to #16
|
|
no. About physent : maxspeed(100) in ents.h in 'shared' folder
reply to this message
|
|
#18: .. |
by HaXBoX
on 07/14/2008 15:09
|
|
i cant compile it! ;/
its ain starting complile.. is it in any cfg file maybe?
reply to this message
|
|
#19: Re: .. |
by MovingTarget
on 07/14/2008 15:43, refers to #18
|
|
How are you trying to compile it?
reply to this message
|
|
#20: Re: .. |
by Q009
on 07/14/2008 16:24, refers to #19
|
|
Die stupid red monkeys! :P
reply to this message
|
|
|
Board Index
|
|