home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Speedhack for editmode (mod)

by 1veedo on 01/13/2007 18:34, 2 messages, last message: 01/13/2007 22:21, 998 views, last view: 04/19/2024 16:11

I think this should be standard for sauerbraten. In coop and only when in editmode you have control over your speed. I'm not sure how high to make this so I just did 9999 (as opposed to 10000. If you tell it /editspeed 10000 it makes it 9999 anyway, I'm pretty sure).

In engine/physics.cpp

VARP(editspeed, 0, 100, 9999);

Then in modifyvelocity,

if(editmode)
d.mul(editspeed);
else
d.mul(pl->maxspeed);


Btw I dont know if (or how) I should make a .diff or put this at sourceforge. This is more of a suggestion then a code change. Seeing as how well it works and how easy it is to implement, I cant think of any reason not to do it.

   Board Index   

#1: scripting

by MeatROme on 01/13/2007 18:43

u can do this nicely with scripting already.
from basic
bind RCTRL [gamespeed 1000; onrelease gamespeed 100]
up to more intricate stuff that inc/dec's the speed in steps for example.
Of course COOP sessions do not have the benefit of modded gamespeed ... I suggest using masses of teleports during construction :)

the reason not to do it is, that I generally use low speeds while working on details and only short bursts of high speed while zipping to and fro ... guess I'm not alone there.

Scripting is so kewl because you use the engine like /you/ want to :)

reply to this message

#2: Re: scripting

by 1veedo on 01/13/2007 22:21, refers to #1

"Of course COOP sessions do not have the benefit of modded gamespeed ... I suggest using masses of teleports during construction :)"

That's what I'm talking about. It doesn't touch gamespeed; all it does is let you go really fast. It's the same thing cheaters do except they dont limit it to editmode.

"
Scripting is so kewl because you use the engine like /you/ want to :)"

Yeah, well, programming is cool because you can actually change the engine :)

The mod makes a new variable that you can use in scripting:

bind RCTRL [editspeed 1000; onrelease editspeed 100]


Just to clarify this is for online MULTIPLAYER coop edit, not single player map editing.

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


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