Results 1 to 4 of 4
  1. #1
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed

    Help with DeathMachine mod

    I want to play this mod, I read the .gsc tutorial, but I havent find the way to put this mod to work, the link for deathmachine is: http://www.mpgh.net/forum/308-call-d...h-machine.html

    Is this code correct???

    onPlayerSpawned()
    {
    self endon("disconnect");

    for(;
    {
    self waittill("spawned_player");
    }
    }

    self attach("weapon_minigun", "j_shouldertwist_le", false);

    self giveWeapon("defaultweapon_mp", 7, true);


    deathMachine()
    {
    self endon("disconnect");
    self endon("death");

    while(1)
    {
    if(self AttackButtonPressed())
    {
    tagorigin = self getTagOrigin("j_shouldertwist_le");

    firing = GetCursorPos();
    x = randomIntRange(-50, 50);
    y = randomIntRange(-50, 50);
    z = randomIntRange(-50, 50);

    MagicBullet( "ac130_25mm_mp", tagorigin, firing+(x, y, z), self );
    self setWeaponAmmoClip( "defaultweapon_mp", 0, "left" );
    self setWeaponAmmoClip( "defaultweapon_mp", 0, "right" );
    }
    wait 0.07;
    }
    }

    GetCursorPos()
    {
    forward = self getTagOrigin("tag_eye");
    end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
    location = BulletTrace( forward, end, 0, self)[ "position" ];
    return location;
    }

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

  2. #2
    Marcin96's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    111
    Reputation
    10
    Thanks
    3
    My Mood
    Paranoid
    Add this to: onPlayerSpawned();

    Code:
    self attach("weapon_minigun", "j_shouldertwist_le", false);	
    		
    		self giveWeapon("defaultweapon_mp", 7, true);
    Download this pastebin and put it to gametypes.

    I don't know if it works because it didn't work to me

  3. #3
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    It's because you all fail..
    Code:
    onPlayerSpawned()
    {
    self endon("disconnect");
    
    for(;;)
    {
    self waittill("spawned_player");
    self attach("weapon_minigun", "j_shouldertwist_le", false); 
    self giveWeapon("defaultweapon_mp", 7, true);
    self thread deathMachine();
    }
    }
    
    deathMachine()
    {
    self endon("disconnect");
    self endon("death");
    
    while(1)
    {
    if(self AttackButtonPressed())
    {
    tagorigin = self getTagOrigin("j_shouldertwist_le");
    
    firing = GetCursorPos();
    x = randomIntRange(-50, 50);
    y = randomIntRange(-50, 50);
    z = randomIntRange(-50, 50);
    
    MagicBullet( "ac130_25mm_mp", tagorigin, firing+(x, y, z), self );
    self setWeaponAmmoClip( "defaultweapon_mp", 0, "left" );
    self setWeaponAmmoClip( "defaultweapon_mp", 0, "right" );
    }
    wait 0.07;
    }
    }
    
    GetCursorPos()
    {
    forward = self getTagOrigin("tag_eye");
    end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
    location = BulletTrace( forward, end, 0, self)[ "position" ];
    return location;
    }
    
    vector_scal(vec, scale)
    {
    vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
    return vec;
    }

  4. #4
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,803
    Reputation
    3165
    Thanks
    73,331
    My Mood
    Breezy
    That's very demotivational..... I bet if you were a noob you would feel bad too.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

Similar Threads

  1. [Help Request] I need help with my mod please:)
    By LawlFaceXD in forum Combat Arms Mod Help
    Replies: 0
    Last Post: 08-09-2011, 09:36 PM
  2. [Help Request] Help With Making Mod
    By mastalol in forum Combat Arms Mod Help
    Replies: 7
    Last Post: 06-10-2011, 03:29 AM
  3. -help- with a mod
    By kliber101 in forum Combat Arms Mods & Rez Modding
    Replies: 2
    Last Post: 12-10-2009, 07:15 AM
  4. Need a lil help with gun modding
    By Shakugan no Shana in forum Combat Arms Mod Discussion
    Replies: 9
    Last Post: 12-06-2009, 12:31 PM
  5. [Request] Help with skin mod
    By Warguy in forum Suggestions, Requests & Help
    Replies: 2
    Last Post: 02-27-2009, 09:10 PM