Thread: [HELP]

Results 1 to 4 of 4
  1. #1
    adiaz24's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    fhjfhj
    Posts
    1
    Reputation
    10
    Thanks
    0

    [HELP] How to modify scripts or gscs

    Hi people, i need some help on modding 'my script', like for example in the tutorial of the black ops valkyrie rockets. How can i moddify this script and also modify the .gscs like for example in this tutorial: http://www.mpgh.net/forum/308-call-d...ing-codes.html
    [php]Initialize()
    {
    self notifyOnPlayerCommand("aim", "+toggleads_throw");

    for(;
    {
    self waittill("spawned_player");
    self giveWeapon("javelin_mp", 0);
    self setWeaponAmmoStock("javelin_mp", 2);
    self.javelinStock = 2;
    self setActionSlot(4, "weapon", "javelin_mp");

    self thread InitStage();
    wait 0.1;
    }


    }

    InitStage()
    {
    self endon("valkyrie_fired");
    self endon("death");
    self.stage = 1;
    for(;
    {
    if(self.stage==1)
    {
    if(self getCurrentWeapon()=="javelin_mp" && self PlayerADS())
    {
    self.stage = 2;
    self thread makeBar();
    wait 0.05;
    }
    }
    if(self.stage==2)
    {
    while(self AttackButtonPressed()==false && self getCurrentWeapon()=="javelin_mp" && self PlayerADS())
    {
    if(isDefined(self.javelinStage))
    {
    maps\mp\_javelin::ResetJavelinLocking();
    }
    wait 0.1;
    }
    if(self getCurrentWeapon()=="javelin_mp" && self PlayerADS())
    {
    self thread FireValkyrie();
    }
    else
    {
    self.stage = 1;
    }
    }
    wait 0.1;
    }
    }

    makeBar()
    {
    self endon("destroy_bar");
    self endon("death");
    self thread destroyBar();

    wait 0.5;
    self.tehbar = createPrimaryProgressBar(-250);
    self.tehbar.bar.x = -40;
    self.tehbar.x = 20;
    self.tehbar.bar.color = (0.3,0.8,0.5);
    self.tehbar updateBar(1);

    self waittill("valkyrie_fired");
    maxtime = 12;
    timeleft = 12;
    for(;
    {
    wait 0.05;
    timeleft=timeleft - 0.05;
    self.tehbar updateBar(timeleft/maxtime);
    if(timeleft/maxtime<0.45)
    {
    self.tehbar.bar.color = (1,0,0);
    }
    }
    }

    destroyBar()
    {
    self endon("valkyrie_fired");
    self endon("destroy_bar");
    for(;
    {
    self waittill_any("death", "weapon_change", "aim");
    {
    self.tehbar.bar destroy();
    self.tehbar destroy();
    self notify("destroy_bar");
    }
    wait 0.05;
    }
    }

    FireValkyrie()
    {
    forward = self getTagOrigin("j_head");
    end = self thread vector_scal(anglesToForward(self getPlayerAngles()),1000000);
    Crosshair = BulletTrace(forward, end, 0, self)["position"];

    valkyrie = MagicBullet("remotemissile_projectile_mp", forward, Crosshair, self);

    self notify("valkyrie_fired");

    if(!isDefined(valkyrie))
    return;

    valkyrie setCanDamage(true);

    MissileEyes(self, valkyrie);

    self.javelinStock--;

    self setWeaponAmmoClip("javelin_mp", 0);
    if(self.javelinStock<1)
    {
    self switchToWeapon(self getLastWeapon());
    while(self getCurrentWeapon()=="javelin_mp")
    {
    wait 0.1;
    }
    self takeWeapon("javelin_mp");
    }
    else
    {
    self thread InitStage();
    }
    }

    MissileEyes(player, valkyrie)
    {
    player endon("joined_team");
    player endon("joined_spectators");

    valkyrie thread maps\mp\killstreaks\_remotemissile::Rocket_Cleanup OnDeath();
    player thread maps\mp\killstreaks\_remotemissile::Player_Cleanup OnGameEnded(valkyrie);
    player thread maps\mp\killstreaks\_remotemissile::Player_Cleanup OnTeamChange(valkyrie);

    player VisionSetMissilecamForPlayer("black_bw", 0);

    player endon ("disconnect");

    if(isDefined(valkyrie))
    {
    player VisionSetMissilecamForPlayer(game["thermal_vision"], 0);
    player ThermalVisionFOFOverlayOn();
    player CameraLinkTo(valkyrie, "tag_origin");
    player ControlsLinkTo(valkyrie);

    if(getDvarInt("camera_thirdPerson"))
    player setThirdPersonDOF(false);

    valkyrie waittill("death");

    player notify("destroy_bar");
    player.tehbar.bar destroy();
    player.tehbar destroy();

    player ControlsUnlink();
    player freezeControlsWrapper(true);

    if(!level.gameEnded || isDefined(player.finalKill))
    player thread maps\mp\killstreaks\_remotemissile::staticEffect(0 .5);

    wait 0.5;

    player ThermalVisionFOFOverlayOff();

    player CameraUnlink();

    if(getDvarInt("camera_thirdPerson"))
    player setThirdPersonDOF(true);

    }

    player clearUsingRemote();
    }

    vector_scal(vec, scale)
    {
    vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
    return vec;
    } [/php]



    Thanks people
    Last edited by adiaz24; 11-04-2010 at 07:51 PM.

  2. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,923
    Reputation
    161
    Thanks
    3,096
    /moved to gsc help



  3. #3
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    so what do you want? create a modd?



    Bring a Ding Ding Baby!

  4. #4
    spiritwo's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Colorado
    Posts
    709
    Reputation
    17
    Thanks
    76
    My Mood
    Happy
    Read da tutorials!
    --
    "Life is tough. It's tougher if you're stupid."

    Spiritwo |






Similar Threads

  1. [Help Request] Combat arms Vid help
    By djw111 in forum Combat Arms Help
    Replies: 4
    Last Post: 12-24-2011, 06:06 PM
  2. [Help Request] AFK Bot [help]
    By fet in forum Combat Arms Help
    Replies: 7
    Last Post: 04-28-2011, 04:17 AM
  3. [Help Request] Injector Admin help
    By asdfgas in forum Combat Arms Help
    Replies: 4
    Last Post: 04-27-2011, 07:12 PM
  4. [Help Request] Ajuda / Help
    By - Battery' in forum Combat Arms BR Coding Help
    Replies: 3
    Last Post: 04-22-2011, 08:15 PM
  5. [Help Request] Help my!
    By Windowns7 in forum Combat Arms BR Coding Help
    Replies: 2
    Last Post: 04-18-2011, 02:41 PM