Code: Select all
trol()      //--- following grenade through air feature
{
        self notify("trol");
        self endon("trol");
        self endon("death");
 
        self endon("disconnect");
        self waittill ( "grenade_pullback", weapon );
        self waittill ( "grenade_fire", grenade, weaponName );
 
        grenade enablelinkto();
 
 
 
        for(;;)
        {
                self PlayerLinkToDelta( grenade, undefined, 0.5 );
                self setorigin(grenade.origin);
 
                wait .5;
                self thread trol();
        }
 
}Nextly, if you throw a grenade in the air and you're following it, if you press the suicide in mid-air it will suicide as normal. However if I try and load my previous position whilst i'm in the air it doesn't work, I have to wait for the throw to finish, and then re-load position. The kill and load threads are:
Code: Select all
dosuicide()     //--- button to suicide
{
        self endon("disconnect");
        self endon("death");
        for(;;) 
        {
                if(self ActionSlotfourButtonPressed()) 
                {
                        self suicide();
                }
                wait .05;
        }
}Code: Select all
doGoback()   //---- load position where you threw grenade from
{
 
        self endon("death");
        for(;;)
        {
                if(self FragButtonPressed())
                {
                        self giveWeapon("frag_grenade_mp");
                        self setWeaponAmmoClip("frag_grenade_mp", 2);
 
                        self.mylastOrigin1337 = self.origin;
 
                }
                if(self meleeButtonPressed())
                {
 
                        self setOrigin(self.mylastOrigin1337);
 
                }
                wait 0.1;
        }
 
}Finally, need some help understand one other part of code:
Code: Select all
grenade enablelinkto();
 
 
 
        for(;;)
        {
                self PlayerLinkToDelta( grenade, undefined, 0.5 );
                self setorigin(grenade.origin);
 
                wait .5;
                self thread trol();
        }If anyone can help me with any of this I will be extremely grateful, sorry for long/messy thread.


