feanor
22nd October 2016, 17:15
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.
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.objective, self.origin);
objective_team(self.objective, "none");
self createFlagWaypoint();
self deleteFlagMissingWaypoint();
}
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.objective, self.origin);
objective_team(self.objective, "none");
self createFlagWaypoint();
self deleteFlagMissingWaypoint();
}