Results 1 to 2 of 2

Thread: zombie gametype (objective)

  1. #1
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts

    zombie gametype (objective)

    hello all

    In the zombie gametype of paulus, there is a objective above the hunters when you are zom.
    It does not work perfectly: when hunter move, the objective stay blocked on the position for some sec and load above hunter.
    Someone here can help me to fix it? pls
    xfire: ordi37zk

  2. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    PHP Code:
        if(getCvar("scr_zom_positiontime") == "")
            
    setCvar("scr_zom_positiontime""6");
        
    level.PositionUpdateTime getCvarInt("scr_zom_positiontime"); 
    PHP Code:
    updateobjmarker()
    {
        
    self endon("StopOnCompass");
        
        
    level.positiontime GetCvarInt("scr_zom_positiontime");
        
        if (
    level.positiontime<|| level.positiontime>20)
            
    level.positiontime=0.000001;

        if (
    level.positiontime==0)
            
    level.positiontime=0.000001;

        for(;;)
        {
            
    wait level.positiontime;
        
            if (
    level.showasobjpoint)
            {
                for(
    0level.objpoints_axis.array.sizei++)
                {
                    if (
    level.objpoints_axis.array[i].name==self.clientid)
                    {            
                        
    level.objpoints_axis.array[i].x=self.origin[0];
                        
    level.objpoints_axis.array[i].y=self.origin[1];
                        
    level.objpoints_axis.array[i].z=self.origin[2]+70;
                    }
                }

                
    updateAllPlayerObjpoints("axis");
            }
            
            if (
    level.showoncompass)
            {
                
    objective_position(self.objnumself.origin);
            }
        }


  3. The Following 2 Users Say Thank You to Mitch For This Useful Post:

    kung foo man (11th August 2014),Rocky (11th August 2014)

Posting Permissions

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