Hello
This can be also useful, a basic turret tutorial.
This is how to spawn a turret, in angles set the angles, in position the position, in type of turret one of the turrets I put down in the post, in model put a model of the ones I say later:
You can also make them turn 360 degrees with this commands:
To shoot them, not by using player, you can use:
Some other functions:
Now some models and types of turrets to use when spawning a turret:
Types:
Models:
Thats nearly all, basically with this, you can spawn without any problems turrets.
This can be also useful, a basic turret tutorial.
This is how to spawn a turret, in angles set the angles, in position the position, in type of turret one of the turrets I put down in the post, in model put a model of the ones I say later:
Code:
Turret = spawnTurret( "misc_turret", position, "type of turret" );
Turret setModel( "model" );
Turret.angles = angles;
You can also make them turn 360 degrees with this commands:
Code:
Turret SetRightArc(degrees);
Turret SetLeftArc(degrees);
Turret SetTopArc(degrees);
Turret SetBottomArc(degrees);
To shoot them, not by using player, you can use:
Code:
Turret ShootTurret();
Some other functions:
Code:
Turret LaserOn(); //put laser
Turret setTurretTeam( self.team ); //set the turrets team
Turret SetMode( "auto_nonai" ); //will allow it to target enemies, like sentry guns
Turret SetPlayerSpread( .65 ); //Spread that turret has
Turret makeTurretInoperable(); //Make it unusable by players
Turret SetDefaultDropPitch( 0 ); //The movement that does back when you leave turret, 0 is best.
Turret SetSentryOwner( self ); //Set the owner of the turret
Turret SetTurretMinimapVisible( true ); //Make it appear on minimap
Now some models and types of turrets to use when spawning a turret:
Types:
Code:
pavelow_minigun_mp //classic one, from pavelows
turret_minigun_mp //spining turrets, only work on maps like karachi,wasteland or overgrown
sentry_minigun_mp //sentry gun
minigun_littlebird_mp //not sure if it works
Models:
Code:
weapon_minigun //minigun
sentry_minigun //sentry gun
weapon_saw_mg_setup //M249, works in karachi, precache it in Init(), thanks to se7en, even if he has used my tutorial for finding models, lol
vehicle_little_bird_minigun_left //never tested this, dont know if it works
vehicle_little_bird_minigun_right //same as previous one
Thats nearly all, basically with this, you can spawn without any problems turrets.