home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Source editing help

by Ringo Starr owns n00bs on 05/08/2007 07:50, 0 messages, last message: 05/08/2007 07:50, 776 views, last view: 04/29/2024 04:52, closed on 05/08/2007 08:40

I am experimenting with Sauerbraten.

How would I let it read the JUMPVEL (jump velocity) and other variables out of a cfg file?

Why does this throw out an error?

switch (strength) {
case 1:
strength < 12;
JUMPVEL = 150.0f;
break;
case 2:
strength < 10;
JUMPVEL = 125.0f;
break;
case 3:
strength < 3;
JUMPVEL = 100.0f;
break;
case 4:
strength > 12;
JUMPVEL = 200.0f;
break;
default:
JUMPVEL=125.0f;
break;
}

   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
53863975 visitors requested 71639107 pages
page created in 0.012 seconds using 10 queries
hosted by Boost Digital