mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Set lockstate after upgrade
This commit is contained in:
parent
b9fee12c7b
commit
18dfb95e03
@ -10,7 +10,7 @@
|
|||||||
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
|
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
|
||||||
*/
|
*/
|
||||||
|
|
||||||
private ["_slot","_pos","_dir","_cargo","_damage","_OldHitPoints","_typeVeh","_baseVeh","_color","_fuel","_newVeh","_checkclass","_cfgEpochVehicles","_availableColorsConfig","_colors","_textureSelectionIndex","_selections","_textures","_count","_newHitpoints","_idx","_dmg"];
|
private ["_slot","_pos","_dir","_cargo","_damage","_OldHitPoints","_typeVeh","_baseVeh","_color","_fuel","_newVeh","_checkclass","_cfgEpochVehicles","_availableColorsConfig","_colors","_textureSelectionIndex","_selections","_textures","_count","_newHitpoints","_idx","_dmg","_lock"];
|
||||||
params [["_array",[]],["_player",objnull],["_token","",[""]]];
|
params [["_array",[]],["_player",objnull],["_token","",[""]]];
|
||||||
if (_array isequalto []) exitwith {
|
if (_array isequalto []) exitwith {
|
||||||
diag_log "Array is empty";
|
diag_log "Array is empty";
|
||||||
@ -42,6 +42,7 @@ _typeVeh = typeOf _veh;
|
|||||||
_baseVeh = _veh getVariable ["VEHICLE_BASECLASS",_typeVeh];
|
_baseVeh = _veh getVariable ["VEHICLE_BASECLASS",_typeVeh];
|
||||||
_color = _veh getVariable ["VEHICLE_TEXTURE",""];
|
_color = _veh getVariable ["VEHICLE_TEXTURE",""];
|
||||||
_fuel = fuel _veh;
|
_fuel = fuel _veh;
|
||||||
|
_lock = locked _veh;
|
||||||
deletevehicle _veh;
|
deletevehicle _veh;
|
||||||
waituntil {isnull _veh};
|
waituntil {isnull _veh};
|
||||||
_pos set [2,(_pos select 2)+0.5];
|
_pos set [2,(_pos select 2)+0.5];
|
||||||
@ -52,7 +53,7 @@ _newVeh call EPOCH_server_setVToken;
|
|||||||
_newVeh call EPOCH_server_vehicleInit;
|
_newVeh call EPOCH_server_vehicleInit;
|
||||||
// set fuel level
|
// set fuel level
|
||||||
_newVeh setFuel _fuel;
|
_newVeh setFuel _fuel;
|
||||||
|
_newVeh lock _lock;
|
||||||
// apply persistent textures
|
// apply persistent textures
|
||||||
_checkclass = _typeVeh;
|
_checkclass = _typeVeh;
|
||||||
if !(_newVeh iskindof _typeVeh) then {
|
if !(_newVeh iskindof _typeVeh) then {
|
||||||
|
@ -15,6 +15,7 @@ All changes for [Arma 3](https://arma3.com/) [Epoch Mod](https://epochmod.com) a
|
|||||||
- Hopefully less login issues on BaseSpawn
|
- Hopefully less login issues on BaseSpawn
|
||||||
- Kick by using Jet ejector seats
|
- Kick by using Jet ejector seats
|
||||||
- Wrong calculated Bullets in Traders
|
- Wrong calculated Bullets in Traders
|
||||||
|
- Locked Vehicles were unlocked after upgrade
|
||||||
### Changed
|
### Changed
|
||||||
- Build mode is now also available while looking onto Building Elements (only in your PlotRange)
|
- Build mode is now also available while looking onto Building Elements (only in your PlotRange)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user