PDA

View Full Version : Resetting R6Engine and R6Weapons


RuffianSoldier
13th June 2005, 02:55
I was screwing around with scripts in SP - just to see what I can do.

I changed alot of stuff in R6Weapons and R6Engine using exec command - but I thought taht stuff auto resets when you load a new map - but I get kicked by PB for doorspeed :-P

Is there an easy way to fix this without finding the default settings and exec'ing them from in game?

KizZamP-
13th June 2005, 19:52
just put it in a .u

var config bool doorspeed;

function doorspeed
{
i don't know what the name of that doorspeed thing is = 99999999999.99
}

exec function doorspeed
{
bdoorspeed = !bdoorspeed

DotProduct
13th June 2005, 20:02
whatever u edited with scripts dont remain the same... there restores t odefaults after the game has been restarted... if im not mistaken... all classes have there own default values once compiled or they are loaded from a localized file

RuffianSoldier
13th June 2005, 20:33
See thats what I thought - but when I changed door speed one time - and retarted the game to go play ATC - PB kicked me for door speed...

DyslexicCheater
13th June 2005, 23:39
In order for the values to reset, the class must be reinitialized so the constructor function is called. The constructor prepares the class for use by setting default values. Classes are initialized at program startup by default.

RuffianSoldier
14th June 2005, 00:02
Well - I just set the doorspeed back to 20 - I was afraid i might get kicked for other stuff but apparently that was the only thing that didtn get reset - ty for your help

PROBLEM RESOLVED

DotProduct
15th June 2005, 02:27
In order for the values to reset, the class must be reinitialized so the constructor function is called. The constructor prepares the class for use by setting default values. Classes are initialized at program startup by default.


for short...on startup it loads the defaults..

RuffianSoldier
15th June 2005, 03:03
still doesnt explain why it didnt load the default for door speed.

silencer32
15th June 2005, 03:18
I was screwing around with scripts in SP - just to see what I can do.

I changed alot of stuff in R6Weapons and R6Engine using exec command - but I thought taht stuff auto resets when you load a new map - but I get kicked by PB for doorspeed :-P

Is there an easy way to fix this without finding the default settings and exec'ing them from in game?
do u have auto aim?

RuffianSoldier
15th June 2005, 03:22
Yes, since im talking about SP all I do is press F2.....................

silencer32
15th June 2005, 03:22
whatever u edited with scripts dont remain the same... there restores t odefaults after the game has been restarted... if im not mistaken... all classes have there own default values once compiled or they are loaded from a localized file
dude if i gave u my msn could u help me with hacks for retail or demo of raven shield