• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Bonus for planting the Bomb (s&d)
#1
Hello guys. i need a help.
im looking for a mod that will give you some bonuses if you planted the bomb.
my server is S&D bun nobody even trying to plant it :'(

is there excist any commands for giving something at planting?? for example new Perk or even killstreaks. like hariers.
thanks for attention . . .
  Reply
#2
look into _sd.gsc
Then find event which does bomb plant..
C++/Obj-C developer. Neko engine wip
Steam: Click
[-] The following 1 user says Thank You to Nekochan for this post:
  • islamsaab
  Reply
#3
edit: im retarded
YouTube 1: Azumikkel - Modding
YouTube 2: DerpShark - Gaming Entertainment
Website: Jensby.me
Contact: im[at]jensby.me
[-] The following 3 users say Thank You to AZUMIKKEL for this post:
  • alvarogt95, Pozzuh, zxz0O0
  Reply
#4
Ok going to check...
  Reply
#5
i found this to test. but nothing happened... i whought it should show me XAXAAXAXAXAXA text on top, but for some reason that doesnt happened.[/code][/quote][/php]
Code:
onPickup( player )
{
    
     player.isBombCarrier = true;
    player incPlayerStat( "bombscarried", 1 );
    player thread maps\mp\_matchdata::logGameEvent( "pickup", player.origin );
    
    self maps\mp\gametypes\_gameobjects::set2DIcon( "friendly", "waypoint_escort" );
    self maps\mp\gametypes\_gameobjects::set3DIcon( "friendly", "waypoint_escort" );
self iPrintlnBold("XAXAAXXAAAXAXAXAX");

    if ( !level.bombDefused )
    {
        teamPlayerCardSplash( "callout_bombtaken", player, player.team );        
        leaderDialog( "bomb_taken", player.pers["team"] );
    }
    maps\mp\_utility::playSoundOnPlayers( game["bomb_recovered_sound"], game["attackers"] );
}
  Reply
#6
There is this in _sd.gsc, try increasing that number. If it doesnt work you´ll have to edit _rank.gsc.

Code:
    maps\mp\gametypes\_rank::registerScoreInfo( "plant", 100 );
[Image: veovuq.png]
  Reply
#7
(09-01-2012, 09:07)Yamato Wrote: There is this in _sd.gsc, try increasing that number. If it doesnt work you´ll have to edit _rank.gsc.

Code:
    maps\mp\gametypes\_rank::registerScoreInfo( "plant", 100 );

seems like it gives to you extra XP for planted bomb. but i need extra killstreak as Gravzy noticed.
  Reply
#8
(09-01-2012, 10:03)islamsaab Wrote: seems like it gives to you extra XP for planted bomb. but i need extra killstreak as Gravzy noticed.


You could increase the killstreakCounter for planting the bomb by changing onUsePlantObject function in sd.gsc to this (look at the bottom of the function to see the things i've added):

Code:
onUsePlantObject( player )
{
    // planted the bomb
    if ( !self maps\mp\gametypes\_gameobjects::isFriendlyTeam( player.pers["team"] ) )
    {
        level thread bombPlanted( self, player );
        //player logString( "bomb planted: " + self.label );
        
        // disable all bomb zones except this one
        for ( index = 0; index < level.bombZones.size; index++ )
        {
            if ( level.bombZones[index] == self )
                continue;
                
            level.bombZones[index] maps\mp\gametypes\_gameobjects::disableObject();
        }
        
        player playSound( "mp_bomb_plant" );
        player notify ( "bomb_planted" );
            
        //if ( !level.hardcoreMode )
        //    iPrintLn( &"MP_EXPLOSIVES_PLANTED_BY", player );

        leaderDialog( "bomb_planted" );

        level thread teamPlayerCardSplash( "callout_bombplanted", player );
        
        
        

        level.bombOwner = player;
        player thread maps\mp\gametypes\_hud_message::SplashNotify( "plant", maps\mp\gametypes\_rank::getScoreInfoValue( "plant" ) );
        player thread maps\mp\gametypes\_rank::giveRankXP( "plant" );
        player.bombPlantedTime = getTime();
        maps\mp\gametypes\_gamescore::givePlayerScore( "plant", player );    
        player incPlayerStat( "bombsplanted", 1 );
        player thread maps\mp\_matchdata::logGameEvent( "plant", player.origin );
        
        //part iadded to increase killstreak and check if a new streak has to be given
        
        player.pers["cur_kill_streak"]++;
        
        level notify ( "player_got_killstreak_" + player.pers["cur_kill_streak"], player );
    
        if ( isAlive( player ) )
            player thread maps\mp\killstreaks\_killstreaks::checkKillstreakReward( player.pers["cur_kill_streak"] );

    }
}

It works like this:
Example: You have set predator as your 1st killstreak award

So if you are e.g. at a killstreak of 4 and plant the bomb you will get the predator, as the counter gets increased to 5 for planting.

You might want to add some popUp text/scorePopup etc. to inform the player that his killstreak got increased. I've just tested it with bots and it seems to work fine but you will have to test and check if it causes any bugs.
[Image: lxkf2.jpg]
[-] The following 3 users say Thank You to banz for this post:
  • islamsaab, surtek, Yamato
  Reply
#9
it works very well Big Grin Thank you.
[-] The following 1 user says Thank You to islamsaab for this post:
  • banz
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Disable Planting on Bomb clemi555 4 945 11-04-2013, 07:59
Last Post: clemi555
  Help Match Bonus Script guliwer 5 1,648 10-15-2012, 17:51
Last Post: islamsaab
  [News] Black Ops II Getting Pre-Order Bonus ‘Nuketown 2025′ Multiplayer Map JariZ 10 3,673 07-22-2012, 14:49
Last Post: blackopsguy
  Release Trickshot Mod [Match Bonus] Tasy 0 1,769 07-17-2012, 14:22
Last Post: Tasy
  [Release] SD bomb as ammo box Pozzuh 2 1,255 08-30-2011, 22:36
Last Post: OrangePL
  Die on planting akim14 8 1,239 07-03-2011, 14:26
Last Post: akim14
  [Request] Custom Bomb Defuse Sound koil 2 1,108 07-02-2011, 02:27
Last Post: koil
  Help Bomb Defuse sounds problems. koil 2 757 07-01-2011, 23:52
Last Post: koil
  [Partly Approved] A Few Jutsus & Shrapnel Bomb Lemon 6 1,927 05-28-2011, 20:48
Last Post: AZUMIKKEL
Question [Request] Move dom flags & bomb sites with .gsc? iAegle 12 2,236 01-20-2011, 22:24
Last Post: iAegle

Forum Jump:


Users browsing this thread: 1 Guest(s)