Page MenuHomeFeedback Tracker

EH "handleDamage" ((_this select 3) == (_this select 0)) returns true when driver present
Assigned, WishlistPublic

Description

EH "handleDamage" ((_this select 3) == (_this select 0)) returns true when driver present!! {F26828} {F26829}

Details

Legacy ID
3313278819
Severity
None
Resolution
Open
Reproducibility
Always
Category
Firing from Vehicles
Steps To Reproduce

start a server.
start a headless Client (name player must be "HC")
optional start a headless Client (name player must be "HC1")
optional start a headless Client (name player must be "HC2")
play the HCTEST2.VR.pbo

Additional Information

HC : The Car Pops up left is an unarmed Civilian Offroader and crew is side resistance!!!

HC1: The Car Pops up middle is an unarmed Civilian Truck and crew is side civilian!!!

HC2: The Car Pops up right is an armed FIA Offroad and crew is side west!!!

shot at the car when driver is not present = damage source is side WEST.
shot at the car when driver is present = damage source is side driver car.

Event Timeline

CHIMERACyborg edited Additional Information. (Show Details)
CHIMERACyborg set Category to Firing from Vehicles.
CHIMERACyborg set Reproducibility to Always.
CHIMERACyborg set Severity to None.
CHIMERACyborg set Resolution to Open.
CHIMERACyborg set Legacy ID to 3313278819.May 8 2016, 12:33 PM
CHIMERACyborg edited a custom field.
R34P3R added a subscriber: R34P3R.May 8 2016, 12:33 PM

the EH runns on all machines ? Clients and Server ?

i have it :)

start a server.
start a headless Client (name player must be "HC")
optional start a headless Client (name player must be "HC1")
optional start a headless Client (name player must be "HC2")
play the HCTEST2.VR.pbo

HC : The Car Pops up left is an unarmed Civilian Offroader and crew is side resistance!!!

HC1: The Car Pops up middle is an unarmed Civilian Truck and crew is side civilian!!!

HC2: The Car Pops up right is an armed FIA Offroad and crew is side west!!!

shot at the car when driver is not present = damage source is side WEST.
shot at the car when driver is present = damage source is side driver car
shot at the car when driver dead but still present = damage source is side driver car

this have to be fixed immediately!

Error description is:

EH "handleDamage" (_this select 3) == (_this select 0)

please delete the HCTEST.VR.pbo it is outdated

further the createUnit "ARRAY" has the following malfunction:
_grp = creategroup resistance;
_unit = _grp createUnit [_unittype,_pos, [], 0, "FORM"];

the side of the _unit is still it´s default side!
for what u need _grp in front of createUnit???

a temporary fix is to use the eventhandler "handleDamage" in this way:

_object addEventHandler ["HandleDamage", {
private ["_return"];
if ((_this select 3) == (_this select 0)) then {_return = (_this select 2)} else {
////
your code here
////
};_return}];