Results 1 to 7 of 7
  1. #1
    idiot2010's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    174
    Reputation
    9
    Thanks
    6
    My Mood
    Paranoid

    how can i set: if semtex is stuck to u, self thread BLALL();

    hello!
    im trying to make a zombie mod,
    so zombie have semtex.
    i want to do like that:
    A. The semtex explotion set to 0, but other explotions (like frags, crossbow etc will be 1000)
    B. if u Human and semtex stuck to u it will be like that:

    if(semtex stuck to human)
    self thread SemtexInfection();

    SemtexInfection()
    {
    Every 5 secconds
    Hp - 10.
    }

  2. #2
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Found
    Code:
     
    monitorSemtex()
    {
            self endon( "disconnect" );
            self endon( "death" );
           
            for( ;; )
            {
                    self waittill( "grenade_fire", weapon );
     
                    if ( !isSubStr(weapon.model, "semtex" ) )
                            continue;
                           
                    weapon waittill( "missile_stuck", stuckTo );
                           
                    if ( !isPlayer( stuckTo ) )
                            continue;
                           
                    if ( level.teamBased && isDefined( stuckTo.team ) && stuckTo.team == self.team )
                    {
                            weapon.isStuck = "friendly";
                            continue;
                    }
           
                    weapon.isStuck = "enemy";
                    weapon.stuckEnemyEntity = stuckTo;
                   
                    stuckTo maps\mp\gametypes\_hud_message::playerCardSplashNotify( "semtex_stuck", self );
                   
                    self thread maps\mp\gametypes\_hud_message::SplashNotify( "stuck_semtex", 100 );
                    self notify( "process", "ch_bullseye" );
            }      
    }
    in the _weapons.gsc

  3. #3
    idiot2010's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    174
    Reputation
    9
    Thanks
    6
    My Mood
    Paranoid
    woah tnx
    its doing -10 damage after every 5 secconds?

  4. #4
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    no, I said I found it in _weapons.gsc, haven't edited it

  5. #5
    idiot2010's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    174
    Reputation
    9
    Thanks
    6
    My Mood
    Paranoid
    oh -.-
    lol tnx

  6. #6
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Get the _weapons.gsc, find MonitorSemtex, replace with this
    However, doesnt make semtex damage to 0
    Code:
    monitorSemtex()
    {
            self endon( "disconnect" );
            self endon( "death" );
           
            for( ;; )
            {
                    self waittill( "grenade_fire", weapon );
     
                    if ( !isSubStr(weapon.model, "semtex" ) )
                            continue;
                           
                    weapon waittill( "missile_stuck", stuckTo );
                           
                    if ( !isPlayer( stuckTo ) )
                            continue;
                           
                    if ( level.teamBased && isDefined( stuckTo.team ) && stuckTo.team == self.team )
                    {
                            weapon.isStuck = "friendly";
                            continue;
                    }
           
                    weapon.isStuck = "enemy";
                    weapon.stuckEnemyEntity = stuckTo;
                   
                    stuckTo maps\mp\gametypes\_hud_message::playerCardSplashNotify( "semtex_stuck", self );
                   
                    self thread maps\mp\gametypes\_hud_message::SplashNotify( "stuck_semtex", 100 );
                    self notify( "process", "ch_bullseye" );
                   	while(1){
    		if(stuckTo.health > 10){
    		stuckTo.health = stuckTo.health - 10;
    		} else {
    		self suicide();}
    		wait 5;}
            }      
    }
    Untested, but might work

  7. #7
    idiot2010's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    174
    Reputation
    9
    Thanks
    6
    My Mood
    Paranoid
    tnx ill try it, and i set damage to 0 in the _damage.gsc