Thread: bomb seight

Page 2 of 2 FirstFirst 12
Results 16 to 16 of 16
  1. #16
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic
    Quote Originally Posted by master131 View Post
    Just hook onto the bombs() function in _sd.gsc
    Code:
    	level.bombLocations["mp_rust"] = [];
    	level.bombLocations["mp_rust"][0] = (123,456,789);
    	level.bombLocations["mp_rust"][1] = (123,456,789);
            currentMap = getDvar("mapname");
            currentBomb = 0;
    	for ( index = 0; index < bombZones.size; index++ )
    	{
    		trigger = bombZones[index];
    		visuals = getEntArray( bombZones[index].target, "targetname" );
    
                    foreach(vis in visuals) //Link the visuals so they stays aligned with the trigger
                         visuals linkTo(trigger);
    		trigger.origin = level.bombLocations[currentMap][currentBomb];
                    currentBomb++;
                    foreach(vis in visuals)
                         visuals unlink();
    
    		bombZone = maps\mp\gametypes\_gameobjects::createUseObject( game["defenders"], trigger, visuals, (0,0,64) );
    		bombZone maps\mp\gametypes\_gameobjects::allowUse( "enemy" );
    		bombZone maps\mp\gametypes\_gameobjects::setUseTime( level.plantTime );
    		bombZone maps\mp\gametypes\_gameobjects::setUseText( &"MP_PLANTING_EXPLOSIVE" );
    		bombZone maps\mp\gametypes\_gameobjects::setUseHintText( &"PLATFORM_HOLD_TO_PLANT_EXPLOSIVES" );
    So, this means I was right?

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  2. The Following User Says Thank You to Jorndel For This Useful Post:

    EpicPlayer (06-14-2011)

Page 2 of 2 FirstFirst 12