Results 1 to 10 of 10

Thread: route in radiant

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Private First Class
    Join Date
    Feb 2013
    Posts
    201
    Thanks
    4
    Thanked 10 Times in 7 Posts
    I did it but i have problem with damage_trigger , i can give damage only with grenade.
    but when i give dmg with grenade i have only : iprintlnbold 1 but i havnt iprintlnbold dmg : x .

    radiant :
    targetname
    damage
    script:
    PHP Code:
    dmg getent("damage","targetname");
    self setmodel("xmodel/prop_barrel_black");

    dmg.origin=self.origin;
    dmg linkto(self);
    dmg.owner=self;
    dmg thread monitordamage(); 
    PHP Code:
    monitordamage()
    {
        
    self endon("endmonitor");
        for(;;)
        {
            
    self waittill("damage",dam,attacker,miscattack);
            
    iprintlnbold("1");
            if(!
    isplayer(attacker)) continue;
            if(
    isdefined(miscattack))
            {
                
    iprintlnbold("dmg : " dam);
                continue;
            }        
        }

    Last edited by malyczolg; 5th June 2014 at 21:25.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •