Results 1 to 6 of 6
  1. #1
    kerocx's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    79
    Reputation
    10
    Thanks
    6

    [SOLVED]How do you spawn explosive barrels ?

    I found the following code but it doesnt seem to work for me :
    Code:
    GetCursorEntity()
    {
    forward = self getTagOrigin("tag_eye");
    vec = anglestoforward(self getPlayerAngles());
    end = (vec[0] * 20000, vec[1] * 20000, vec[2] * 20000);
    entity = BulletTrace( forward, end, 0, self )[ "entity" ];
    return entity;
    } 
    entity = spawn( "script_model", (2977,-2936,282) );
            entity.angles = (0,53,0);
            entity setModel( "com_barrel_benzin" );
            entity.targetname = "explodable_barrel";
            entity.target = "pf77_auto1";//you need the target name to make it solid
            EntCollision = getEnt( entity.target, "pf77_auto1" );//also include this line
            entity CloneBrushmodelToScriptmodel( EntCollision );
            entity common_scripts\_destructible::setup_destructibles();
    This seems to be set for spawning ob shooting, but somehow i cant get it working for spawned stuff... any advice ?

  2. #2
    B4M's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Real World
    Posts
    6,940
    Reputation
    478
    Thanks
    1,752
    My Mood
    Bored
    /Moved to help
    [center]

    Back in '10



    Got a question?PM/VM me!
    I read them all.
    Also contact me via MSN.
    vlad@mpgh.net

    Minion since:07-04-2010
    Mod since:08-31-2010
    Till : 05.07.2011

  3. #3
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,669
    My Mood
    Breezy
    It only works on maps that PreCache "com_barrel_benzin".
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    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]

  4. #4
    B4M's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Real World
    Posts
    6,940
    Reputation
    478
    Thanks
    1,752
    My Mood
    Bored
    /Marked as solved.
    [center]

    Back in '10



    Got a question?PM/VM me!
    I read them all.
    Also contact me via MSN.
    vlad@mpgh.net

    Minion since:07-04-2010
    Mod since:08-31-2010
    Till : 05.07.2011

  5. #5
    kerocx's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    79
    Reputation
    10
    Thanks
    6
    how is this solved ? omg

  6. #6
    cayongrayoo's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Adelaide
    Posts
    188
    Reputation
    15
    Thanks
    25
    My Mood
    Confused
    Quote Originally Posted by kerocx View Post
    how is this solved ? omg
    Because you have been told why it wasn't working for you. It only works for certain maps.

    So now you know what to do. Make sure ur using a map that works.
    When i was younger, my fairy god mother asked me whether I want a long penis or a long memory.....................I forget my response.


    I came here to drink milk, and kick ass....and I've just finished my milk


    "I'm gunna report you to Activision"
    "Ok tell them I said HAI!"
    Did I help?
    Click thanks? :P


    If I make a mod that you think is easy to make then don't flame me because I did something that COULD of done, I don't care if you can do it or not, the point is you gotta start with the easy stuff.


    Call Of Duty Modern Warfare 2 Legit: Banned as of 25/08/2010
    Reason: Steam Loader.


Similar Threads

  1. [SOLVED] How do YOU make bunkers?
    By ZeroTroubles in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 12
    Last Post: 09-23-2010, 02:22 PM
  2. [Help] [SOLVED]How do you change login pic?
    By IssuedGaming in forum CrossFire Mods & Rez Modding
    Replies: 3
    Last Post: 09-20-2010, 12:38 AM
  3. [SOLVED] how do you..........
    By yaskie in forum Call of Duty Modern Warfare 2 Help
    Replies: 9
    Last Post: 08-17-2010, 03:56 AM
  4. [SOLVED] How do you know if your banned from steam ?
    By vbdfgrseraes in forum Call of Duty Modern Warfare 2 Help
    Replies: 6
    Last Post: 07-18-2010, 06:15 AM
  5. [SOLVED] How do you COMPILE a hack? WTF i cant figure it out
    By joblo150 in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 06-16-2010, 11:38 AM