-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support Antistasi/client-side civ registration
- Loading branch information
Showing
8 changed files
with
58 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
fn_onClientCivKilled.sqf | ||
by @musurca | ||
Remote call from client about dead civilian. | ||
*/ | ||
|
||
if (!isServer) exitWith {}; | ||
|
||
params["_killed", "_killer", "_name"]; | ||
|
||
// Transfer ownership to server immediately | ||
(group _killed) setGroupOwner 2; | ||
|
||
// Fix strange name transfer bug | ||
_nameTokens = _name splitString " "; | ||
_killed setName [_name, _nameTokens select 0, _nameTokens select 1]; | ||
|
||
[_killed, _killer] call GR_fnc_onUnitKilled; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
fn_onLocalCivKilled.sqf | ||
by @musurca | ||
Client-side-only event about dead civilian. | ||
*/ | ||
|
||
params ["_killed", ["_killer", objNull]]; | ||
|
||
if ((isNull _killer) || {_killer == _killed}) then { | ||
_killer = _killed getVariable ["ace_medical_lastDamageSource", objNull]; | ||
}; | ||
|
||
// See if it's a vehicle | ||
if ((!isNull _killer) && {!(_killer isKindof "CAManBase")}) then { | ||
_killer = effectiveCommander _killer; | ||
}; | ||
|
||
if(side (group _killed) == civilian) then { | ||
[_killed, _killer, name _killed] remoteExecCall ["GR_fnc_onClientCivKilled",2]; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters