Add veh spawnlock, fix sacct load to grab job

This commit is contained in:
VortrexFTW
2020-09-09 03:51:09 -05:00
parent e009e71261
commit 30f8b570f7

View File

@@ -74,7 +74,7 @@ function initClassTable() {
this.isWorking = false; this.isWorking = false;
this.jobUniform = this.skin; this.jobUniform = this.skin;
this.lastJobVehicle = null; this.lastJobVehicle = null;
this.job = -1; this.job = subAccountAssoc["sacct_job"];
this.weapons = []; this.weapons = [];
} }
@@ -116,6 +116,7 @@ function initClassTable() {
this.server = serverId; this.server = serverId;
this.model = vehicle.modelIndex; this.model = vehicle.modelIndex;
this.vehicle = vehicle; this.vehicle = vehicle;
this.tempVehicle = false;
// Ownership // Ownership
this.ownerType = AG_VEHOWNER_NONE; this.ownerType = AG_VEHOWNER_NONE;
@@ -126,6 +127,7 @@ function initClassTable() {
// Position and Rotation // Position and Rotation
this.spawnPosition = vehicle.position; this.spawnPosition = vehicle.position;
this.spawnRotation = vehicle.heading; this.spawnRotation = vehicle.heading;
this.spawnLocked = false;
// Colour Info // Colour Info
this.colour1IsRGBA = 0; this.colour1IsRGBA = 0;
@@ -155,6 +157,7 @@ function initClassTable() {
this.databaseId = vehicleAssoc["veh_id"]; this.databaseId = vehicleAssoc["veh_id"];
this.server = vehicleAssoc["veh_server"]; this.server = vehicleAssoc["veh_server"];
this.model = vehicleAssoc["veh_model"]; this.model = vehicleAssoc["veh_model"];
this.tempVehicle = false;
// Ownership // Ownership
this.ownerType = vehicleAssoc["veh_owner_type"]; this.ownerType = vehicleAssoc["veh_owner_type"];
@@ -165,6 +168,7 @@ function initClassTable() {
// Position and Rotation // Position and Rotation
this.spawnPosition = new Vec3(vehicleAssoc["veh_pos_x"], vehicleAssoc["veh_pos_y"], vehicleAssoc["veh_pos_z"]); this.spawnPosition = new Vec3(vehicleAssoc["veh_pos_x"], vehicleAssoc["veh_pos_y"], vehicleAssoc["veh_pos_z"]);
this.spawnRotation = Number(vehicleAssoc["veh_rot_z"]); this.spawnRotation = Number(vehicleAssoc["veh_rot_z"]);
this.spawnLocked = vehicleAssoc["veh_spawn_lock"];
// Colour Info // Colour Info
this.colour1IsRGBA = vehicleAssoc["veh_col1_isrgba"]; this.colour1IsRGBA = vehicleAssoc["veh_col1_isrgba"];