Results 1 to 3 of 3

Thread: stop-resume timer - return flag

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private First Class
    Join Date
    Nov 2015
    Posts
    128
    Thanks
    37
    Thanked 14 Times in 14 Posts

    stop-resume timer - return flag

    hi , i was making ctf-hq mod with half time system(team switching) , but i wanted to make it without maprestart. is there a way to stop and resume timer with a quick code ? and how should i call returnflag() function in half time , bcs players can drop flag in team switching.

    PHP Code:
    returnFlag()
    {
        
    self notify("end_autoreturn");

         
    self.origin self.home_origin;
         
    self.flagmodel.origin self.home_origin;
         
    self.flagmodel.angles self.home_angles;
        
    self.flagmodel show();
        
    self.atbase true;

        
    objective_position(self.objectiveself.origin);
        
    objective_team(self.objective"none");

        
    self createFlagWaypoint();
        
    self deleteFlagMissingWaypoint();

    Last edited by feanor; 22nd October 2016 at 17:18.

Posting Permissions

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