Hmm It still does not work correctly
Here the script:
Code:
sentrygun_stand = spawn("script_model", self.origin + maps\mp\_utility::vectorScale(anglesToForward(self.origin), 50));
sentrygun_stand setModel("xmodel/sentrygun_stand");
sentrygun_stand.angles = (int(self.angles[0]), int(self.angles[1]), 0);
sentrygun_gun = spawn("script_model", self.origin + (0, 0, 47) + maps\mp\_utility::vectorScale(anglesToForward(self.origin), 50));
sentrygun_gun setModel("xmodel/sentrygun_gun");
sentrygun_gun.angles = (int(self.angles[0]), int(self.angles[1]), 0);
How it does look ingame: