Outdated Can anyone help me by this Code ??

zOlymP

Well-Known Member
Messages
55
Reaction score
28
Points
228
I need help the code freez my Console anytime how i can fix it ? :grinning:


Code:
tgride()
{
    self.rdi = BO(self.rdi);
    self iprintln("Kid Ride ^2Spawned");
    if(self.rdi) self thread kidride();
    self endon("rdi");
}
kidride()
{
    self endon("rdi");
    level endon("game_ended");
    spawnPosition=self.origin + (50,25,10);
    a=spawn("script_model",spawnPosition);
    a setModel("t6_wpn_supply_drop_ally");
    a.angles = (45,0,0);
    b=spawn("script_model",spawnPosition);
    b setModel("t6_wpn_supply_drop_axis");
    b linkTo(a,"",(-40,0,0),(0,0,0));
    c=spawn("script_model",spawnPosition);
    c setModel("t6_wpn_supply_drop_hq");
    c linkTo(b,"",(-40,0,0),(0,0,0));
    d=spawn("script_model",spawnPosition);
    d setModel("t6_wpn_supply_drop_ally");
    d linkTo(c,"",(-40,0,0),(0,0,0));
    e=spawn("script_model",spawnPosition);
    e setModel("t6_wpn_supply_drop_axis");
    e linkTo(d,"",(-40,0,0),(0,0,0));
    f=spawn("script_model",spawnPosition);
    f setModel("t6_wpn_supply_drop_hq");
    f linkTo(e,"",(-40,0,0),(0,0,0));
    g=spawn("script_model",spawnPosition);
    g setModel("t6_wpn_supply_drop_ally");
    g linkTo(f,"",(-40,0,0),(0,0,0));
    h=spawn("script_model",spawnPosition);
    h setModel("veh_t6_drone_uav");
    h linkTo(g,"",(-30,0,0),(-90,0,0));
    self thread monitorDist(h,a);
    self thread rdidest(a,b,c,d,e,f,g,h);
    for(;;)
    {
        a rotatepitch( 90, 2);
        wait 2;
        a rotatepitch( -90, 2);
        wait 2;
    }
}
rdidest(a,b,c,d,e,f,g,h)
{
    level endon("game_ended");
    self waittill("rdi");
    a delete();
    b delete();
    c delete();
    d delete();
    e delete();
    f delete();
    g delete();
    h delete();
}
monitorDist(axel,bottom)
{
    self endon("rdi");
    level endon("game_ended");
    for(;;)
    {
        foreach(player in level.players)
        {
            d=distance(bottom.origin,player.origin);
            if(d<100)
            {
                if(player useButtonPressed())
                {
                    player playerLinkTo(axel);
                    player.onToy = 1;
                }
            }
            if(d>100 && player.onToy)
            {
                if(player meleeButtonPressed())
                {
                    player unlink();
                    player.onToy = 0;
                }
            }
        }
        wait 0.05;
    }
}
 
Last edited:

Craze

Alt + F4
Messages
229
Reaction score
163
Points
903
I need help the code freez my menu anytime how i can fix it ? :grinning:


Code:
tgride()
{
    self.rdi = BO(self.rdi);
    self iprintln("Kid Ride ^2Spawned");
    if(self.rdi) self thread kidride();
    self endon("rdi");
}
kidride()
{
    self endon("rdi");
    level endon("game_ended");
    spawnPosition=self.origin + (50,25,10);
    a=spawn("script_model",spawnPosition);
    a setModel("t6_wpn_supply_drop_ally");
    a.angles = (45,0,0);
    b=spawn("script_model",spawnPosition);
    b setModel("t6_wpn_supply_drop_axis");
    b linkTo(a,"",(-40,0,0),(0,0,0));
    c=spawn("script_model",spawnPosition);
    c setModel("t6_wpn_supply_drop_hq");
    c linkTo(b,"",(-40,0,0),(0,0,0));
    d=spawn("script_model",spawnPosition);
    d setModel("t6_wpn_supply_drop_ally");
    d linkTo(c,"",(-40,0,0),(0,0,0));
    e=spawn("script_model",spawnPosition);
    e setModel("t6_wpn_supply_drop_axis");
    e linkTo(d,"",(-40,0,0),(0,0,0));
    f=spawn("script_model",spawnPosition);
    f setModel("t6_wpn_supply_drop_hq");
    f linkTo(e,"",(-40,0,0),(0,0,0));
    g=spawn("script_model",spawnPosition);
    g setModel("t6_wpn_supply_drop_ally");
    g linkTo(f,"",(-40,0,0),(0,0,0));
    h=spawn("script_model",spawnPosition);
    h setModel("veh_t6_drone_uav");
    h linkTo(g,"",(-30,0,0),(-90,0,0));
    self thread monitorDist(h,a);
    self thread rdidest(a,b,c,d,e,f,g,h);
    for(;;)
    {
        a rotatepitch( 90, 2);
        wait 2;
        a rotatepitch( -90, 2);
        wait 2;
    }
}
rdidest(a,b,c,d,e,f,g,h)
{
    level endon("game_ended");
    self waittill("rdi");
    a delete();
    b delete();
    c delete();
    d delete();
    e delete();
    f delete();
    g delete();
    h delete();
}
monitorDist(axel,bottom)
{
    self endon("rdi");
    level endon("game_ended");
    for(;;)
    {
        foreach(player in level.players)
        {
            d=distance(bottom.origin,player.origin);
            if(d<100)
            {
                if(player useButtonPressed())
                {
                    player playerLinkTo(axel);
                    player.onToy = 1;
                }
            }
            if(d>100 && player.onToy)
            {
                if(player meleeButtonPressed())
                {
                    player unlink();
                    player.onToy = 0;
                }
            }
        }
        wait 0.05;
    }
}
Maybe before anything happens, close the menu, using your closeMenu function :smile:
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,745
Reaction score
2,827
Points
1,053
No on the loadingsreen :disappointed: i dont know what is wrong with this code
The syntax is correct, but you're using a functions which you don't have in the code. It's the ::BO.

Code:
self.rdi = BO(self.rdi);
   
I thinks it's a bool function. Do it like this
self.rdi = !self.rdi;

And try it :grinning:
 

zOlymP

Well-Known Member
Messages
55
Reaction score
28
Points
228
The syntax is correct, but you're using a functions which you don't have in the code. It's the ::BO.

Code:
self.rdi = BO(self.rdi);
  
I thinks it's a bool function. Do it like this
self.rdi = !self.rdi;

And try it :smile:
Unfortunately it does not work anyway but thanks for helping :smile:
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,745
Reaction score
2,827
Points
1,053
I tested it and it works for me:
Code:
/*
*     Black Ops 2 - GSC Studio by iMCSx
*
*     Creator : CabCon
*     Project : TESTER
*    Mode : Multiplayer
*     Date : 2016.06.04 - 12:24:27   
*
*/   

#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\gametypes\_hud_util;
#include maps\mp\gametypes\_hud_message;

init()
{
    level thread onPlayerConnect();
}

onPlayerConnect()
{
    for(;;)
    {
        level waittill("connected", player);
        player thread onPlayerSpawned();
    }
}

onPlayerSpawned()
{
    self endon("disconnect");
    level endon("game_ended");
    for(;;)
    {
        self waittill("spawned_player");
       
        // Will appear each time when the player spawn, that's just an exemple.
        self iprintln("Black Ops 2 - GSC Studio | Project : ^2TESTER");
        self thread tgride();
    }
}

tgride()
{
    self.rdi = !self.rdi;
    self iprintln("Kid Ride ^2Spawned");
    if(self.rdi) self thread kidride();
    self endon("rdi");
}
kidride()
{
    self endon("rdi");
    level endon("game_ended");
    spawnPosition=self.origin + (50,25,10);
    a=spawn("script_model",spawnPosition);
    a setModel("t6_wpn_supply_drop_ally");
    a.angles = (45,0,0);
    b=spawn("script_model",spawnPosition);
    b setModel("t6_wpn_supply_drop_axis");
    b linkTo(a,"",(-40,0,0),(0,0,0));
    c=spawn("script_model",spawnPosition);
    c setModel("t6_wpn_supply_drop_hq");
    c linkTo(b,"",(-40,0,0),(0,0,0));
    d=spawn("script_model",spawnPosition);
    d setModel("t6_wpn_supply_drop_ally");
    d linkTo(c,"",(-40,0,0),(0,0,0));
    e=spawn("script_model",spawnPosition);
    e setModel("t6_wpn_supply_drop_axis");
    e linkTo(d,"",(-40,0,0),(0,0,0));
    f=spawn("script_model",spawnPosition);
    f setModel("t6_wpn_supply_drop_hq");
    f linkTo(e,"",(-40,0,0),(0,0,0));
    g=spawn("script_model",spawnPosition);
    g setModel("t6_wpn_supply_drop_ally");
    g linkTo(f,"",(-40,0,0),(0,0,0));
    h=spawn("script_model",spawnPosition);
    h setModel("veh_t6_drone_uav");
    h linkTo(g,"",(-30,0,0),(-90,0,0));
    self thread monitorDist(h,a);
    self thread rdidest(a,b,c,d,e,f,g,h);
    for(;;)
    {
        a rotatepitch( 90, 2);
        wait 2;
        a rotatepitch( -90, 2);
        wait 2;
    }
}
rdidest(a,b,c,d,e,f,g,h)
{
    level endon("game_ended");
    self waittill("rdi");
    a delete();
    b delete();
    c delete();
    d delete();
    e delete();
    f delete();
    g delete();
    h delete();
}
monitorDist(axel,bottom)
{
    self endon("rdi");
    level endon("game_ended");
    for(;;)
    {
        foreach(player in level.players)
        {
            d=distance(bottom.origin,player.origin);
            if(d<100)
            {
                if(player useButtonPressed())
                {
                    player playerLinkTo(axel);
                    player.onToy = 1;
                }
            }
            if(d>100 && player.onToy)
            {
                if(player meleeButtonPressed())
                {
                    player unlink();
                    player.onToy = 0;
                }
            }
        }
        wait 0.05;
    }
}
 

zOlymP

Well-Known Member
Messages
55
Reaction score
28
Points
228
The function or it freez? :smile:
Code:
tgride()
{  
    self.rdi = BO(self.rdi);
    self iprintln("Kid Ride ^2Spawned");
    if(self.rdi) self thread kidride();
    self endon("rdi");
}
kidride()
{
    self endon("rdi");
    level endon("game_ended");
    spawnPosition=self.origin + (50,25,10);
    a=spawn("script_model",spawnPosition);
    a setModel("t6_wpn_supply_drop_ally");
    a.angles = (45,0,0);
    b=spawn("script_model",spawnPosition);
    b setModel("t6_wpn_supply_drop_axis");
    b linkTo(a,"",(-40,0,0),(0,0,0));
    c=spawn("script_model",spawnPosition);
    c setModel("t6_wpn_supply_drop_hq");
    c linkTo(b,"",(-40,0,0),(0,0,0));
    d=spawn("script_model",spawnPosition);
    d setModel("t6_wpn_supply_drop_ally");
    d linkTo(c,"",(-40,0,0),(0,0,0));
    e=spawn("script_model",spawnPosition);
    e setModel("t6_wpn_supply_drop_axis");
    e linkTo(d,"",(-40,0,0),(0,0,0));
    f=spawn("script_model",spawnPosition);
    f setModel("t6_wpn_supply_drop_hq");
    f linkTo(e,"",(-40,0,0),(0,0,0));
    g=spawn("script_model",spawnPosition);
    g setModel("t6_wpn_supply_drop_ally");
    g linkTo(f,"",(-40,0,0),(0,0,0));
    h=spawn("script_model",spawnPosition);
    h setModel("veh_t6_drone_uav");
    h linkTo(g,"",(-30,0,0),(-90,0,0));
    self thread monitorDist(h,a);
    self thread rdidest(a,b,c,d,e,f,g,h);
    for(;;)
    {
        a rotatepitch( 90, 2);
        wait 2;
        a rotatepitch( -90, 2);
        wait 2;
    }
}
rdidest(a,b,c,d,e,f,g,h)
{
    level endon("game_ended");
    self waittill("rdi");
    a delete();
    b delete();
    c delete();
    d delete();
    e delete();
    f delete();
    g delete();
    h delete();
}
monitorDist(axel,bottom)
{
    self endon("rdi");
    level endon("game_ended");
    for(;;)
    {
        foreach(player in level.players)
        {
            d=distance(bottom.origin,player.origin);
            if(d<100)
            {
                if(player useButtonPressed())
                {
                    player playerLinkTo(axel);
                    player.onToy = 1;
                }
            }
            if(d>100 && player.onToy)
            {
                if(player meleeButtonPressed())
                {
                    player unlink();
                    player.onToy = 0;
                }
            }
        }
        wait 0.05;
    }
}


BO(a)
{
    if(!isDefined(a))
        return 1;
       
    if (a)
        return 0;
    else
        return 1;
}
i use this code and if i load up the game my ps3 freez and
if I replace
self.rdi = BO(self.rdi);
by
self.rdi = !self.rdi;
its also freez my ps3 :smile:
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,745
Reaction score
2,827
Points
1,053
Code:
tgride()
{ 
    self.rdi = BO(self.rdi);
    self iprintln("Kid Ride ^2Spawned");
    if(self.rdi) self thread kidride();
    self endon("rdi");
}
kidride()
{
    self endon("rdi");
    level endon("game_ended");
    spawnPosition=self.origin + (50,25,10);
    a=spawn("script_model",spawnPosition);
    a setModel("t6_wpn_supply_drop_ally");
    a.angles = (45,0,0);
    b=spawn("script_model",spawnPosition);
    b setModel("t6_wpn_supply_drop_axis");
    b linkTo(a,"",(-40,0,0),(0,0,0));
    c=spawn("script_model",spawnPosition);
    c setModel("t6_wpn_supply_drop_hq");
    c linkTo(b,"",(-40,0,0),(0,0,0));
    d=spawn("script_model",spawnPosition);
    d setModel("t6_wpn_supply_drop_ally");
    d linkTo(c,"",(-40,0,0),(0,0,0));
    e=spawn("script_model",spawnPosition);
    e setModel("t6_wpn_supply_drop_axis");
    e linkTo(d,"",(-40,0,0),(0,0,0));
    f=spawn("script_model",spawnPosition);
    f setModel("t6_wpn_supply_drop_hq");
    f linkTo(e,"",(-40,0,0),(0,0,0));
    g=spawn("script_model",spawnPosition);
    g setModel("t6_wpn_supply_drop_ally");
    g linkTo(f,"",(-40,0,0),(0,0,0));
    h=spawn("script_model",spawnPosition);
    h setModel("veh_t6_drone_uav");
    h linkTo(g,"",(-30,0,0),(-90,0,0));
    self thread monitorDist(h,a);
    self thread rdidest(a,b,c,d,e,f,g,h);
    for(;;)
    {
        a rotatepitch( 90, 2);
        wait 2;
        a rotatepitch( -90, 2);
        wait 2;
    }
}
rdidest(a,b,c,d,e,f,g,h)
{
    level endon("game_ended");
    self waittill("rdi");
    a delete();
    b delete();
    c delete();
    d delete();
    e delete();
    f delete();
    g delete();
    h delete();
}
monitorDist(axel,bottom)
{
    self endon("rdi");
    level endon("game_ended");
    for(;;)
    {
        foreach(player in level.players)
        {
            d=distance(bottom.origin,player.origin);
            if(d<100)
            {
                if(player useButtonPressed())
                {
                    player playerLinkTo(axel);
                    player.onToy = 1;
                }
            }
            if(d>100 && player.onToy)
            {
                if(player meleeButtonPressed())
                {
                    player unlink();
                    player.onToy = 0;
                }
            }
        }
        wait 0.05;
    }
}


BO(a)
{
    if(!isDefined(a))
        return 1;
      
    if (a)
        return 0;
    else
        return 1;
}
i use this code and if i load up the game my ps3 freez and
if I replace
self.rdi = BO(self.rdi);
by
self.rdi = !self.rdi;
its also freez my ps3 :grinning:
Try the code here: Question - Can anyone help me by this Code ?? | CabConModding If it freez it isn't this code, than your menu have something wrong somewhere else! :grinning:
 
Top