mirror of
https://github.com/Ignatz-HeMan/Ignatz_Tools.git
synced 2024-08-30 16:12:11 +00:00
weapon compatible
This commit is contained in:
parent
07ea23e0ef
commit
d1b11ac4a3
@ -17,29 +17,39 @@ if (!isserver) exitwith {};
|
||||
{
|
||||
private ['_object'];
|
||||
_x params ['_type','_pos','_dir','_vectordirandup'];
|
||||
_simulate = false;
|
||||
_simple = true;
|
||||
_allowdamage = true;
|
||||
_object = objnull;
|
||||
if (_type iskindof 'house') then {
|
||||
if (_type in ['Land_Pier_F']) exitwith {
|
||||
_simulate = false;
|
||||
_simple = true;
|
||||
};
|
||||
_simulate = true;
|
||||
_simple = false;
|
||||
}
|
||||
else {
|
||||
{
|
||||
if !(((tolower _type) find (tolower _x)) isequalto -1) exitwith {
|
||||
_simulate = true;
|
||||
_simple = false;
|
||||
_allowdamage = false;
|
||||
};
|
||||
} foreach ['lamp','light','fuel','fire','gate','helipad'];
|
||||
} foreach ['lamp','light','fuel','fire','gate','helipad','weapon'];
|
||||
};
|
||||
|
||||
if (_simulate) then {
|
||||
if !(_simple) then {
|
||||
_simulate = true;
|
||||
{
|
||||
if !(((tolower _type) find (tolower _x)) isequalto -1) exitwith {
|
||||
_simulate = false;
|
||||
_allowdamage = false;
|
||||
};
|
||||
} foreach ['weapon'];
|
||||
_object = createVehicle [_type,[0,0,0],[],0,'CAN_COLLIDE'];
|
||||
if (!_allowdamage) then {
|
||||
_object allowdamage false;
|
||||
};
|
||||
if (!_simulate) then {
|
||||
_object enablesimulationglobal false;
|
||||
};
|
||||
}
|
||||
else {
|
||||
_object = createsimpleobject [_type,[0,0,0]];
|
||||
|
Loading…
Reference in New Issue
Block a user