Answered Multiplayer Movement in Shadows of Evil

keatongregg

Member
Messages
19
Reaction score
7
Points
8
I asked for help with this yesterday and I was told that I need to put the code in a loop, but I did that and still can't seem to make it work. Anybody know what I'm doing wrong?
Here's the code in case I'm just an idiot :tonguewink:
Code:
function func_newMovementOn()
{
 
    self endon ("StopMovement");
    for(;;)
    {
            if(self.gamevars["newMovement"]== true)
            {
                SetDvar( "doublejump_enabled", 1 );
                SetDvar( "juke_enabled", 1 );
                SetDvar( "playerEnergy_enabled", 0 );
                SetDvar( "wallrun_enabled", 1 );
                SetDvar( "sprintLeap_enabled", 1 );
                SetDvar( "traverse_mode", 1 );
                SetDvar( "weaponrest_enabled", 1 );
            }
        wait .1;
    }
 
}
 
Last edited by a moderator:

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
I asked for help with this yesterday and I was told that I need to put the code in a loop, but I did that and still can't seem to make it work. Anybody know what I'm doing wrong?
Here's the code in case I'm just an idiot :tonguewink:
Code:
function func_newMovementOn()
{
 
    self endon ("StopMovement");
    for(;;)
    {
            if(self.gamevars["newMovement"]== true)
            {
                SetDvar( "doublejump_enabled", 1 );
                SetDvar( "juke_enabled", 1 );
                SetDvar( "playerEnergy_enabled", 0 );
                SetDvar( "wallrun_enabled", 1 );
                SetDvar( "sprintLeap_enabled", 1 );
                SetDvar( "traverse_mode", 1 );
                SetDvar( "weaponrest_enabled", 1 );
            }
        wait .1;
    }
 
}
This is correct! I tested the same on shadows of the evil and it didn't work for me. But on the giant it worked perfectly. I think there is something which blocks it on soe... we should take a look into the source.

Regards,
CabCon.
 

keatongregg

Member
Messages
19
Reaction score
7
Points
8
This is correct! I tested the same on shadows of the evil and it didn't work for me. But on the giant it worked perfectly. I think there is something which blocks it on soe... we should take a look into the source.

Regards,
CabCon.
As I've said before I am very very new to this and though I am looking into this, I'm just not too sure what I'm doing or even really looking for.
 

keatongregg

Member
Messages
19
Reaction score
7
Points
8
I will take a look. :grinning:

Regards,
CabCon.
I don't know if this is useful or not but I found that the multiplayer movement works on der eisendrache in the anti gravity room when the gravity is turned down. By that I mean that any changes made to the dvars will work while the gravity is off in that room. Example: SetDvar( "playerEnergy_enabled", 0 ) makes you able to continuously thrust jump (fly) until the gravity turns on. Once the gravity turns back on you go back to normal zombies movement.
 

Collie

Veteran
Messages
9
Reaction score
12
Points
788
I am also interested in this working on all maps. Cabcon, have you had any time to look into this?
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
I am also interested in this working on all maps. Cabcon, have you had any time to look into this?
The actually problem is that we do not got the files from soe. :smile: I think the issue is caused by that there is something like a zone for where you can use the 'new movement'. :smile: But I will try out more and update you later. :peace:
 
Top