Skip to content

Commit

Permalink
Rewrite rectify. Medical - Add vehicle hint when loading unconscious (#…
Browse files Browse the repository at this point in the history
…6822)

* Rewrite rectify. Medical - Add vehicle hint when loading unconscious

* Fix copy paste
  • Loading branch information
TheMagnetar authored Mar 17, 2019
1 parent c15ecb7 commit 5e8dcd8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions addons/medical_treatment/functions/fnc_actionLoadUnit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,11 @@ if ([_target] call EFUNC(medical_status,isBeingDragged)) then {
};

private _vehicle = [_caller, _target, _vehicle] call EFUNC(common,loadPerson);
if (!isNull _vehicle) then {
private _hint = LSTRING(loadedInto);
private _itemName = [_target, false, true] call EFUNC(common,getName);
private _vehicleName = getText (configFile >> "CfgVehicles" >> typeOf _vehicle >> "displayName");
[[_hint, _itemName, _vehicleName], 3.0] call EFUNC(common,displayTextStructured);
};

_vehicle
16 changes: 16 additions & 0 deletions addons/medical_treatment/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3247,6 +3247,22 @@
<Chinesesimp>将伤者背出</Chinesesimp>
<Chinese>將傷者背出</Chinese>
</Key>
<Key ID="STR_ACE_Medical_treatment_loadedInto">
<English>%1&lt;br/&gt;loaded into&lt;br/&gt;%2</English>
<Spanish>%1&lt;br/&gt;cargado en&lt;br/&gt;%2</Spanish>
<French>%1&lt;br/&gt;chargé dans&lt;br/&gt;%2</French>
<German>%1&lt;br/&gt;in&lt;br/&gt;%2 verladen</German>
<Polish>%1&lt;br/&gt;załadowano do&lt;br/&gt;%2</Polish>
<Czech>%1&lt;br/&gt;naloženo do&lt;br/&gt;%2</Czech>
<Portuguese>%1&lt;br/&gt;carregado em&lt;br/&gt;%2</Portuguese>
<Italian>%1&lt;br/&gt;caricato su&lt;br/&gt;%2</Italian>
<Hungarian>%1&lt;br/&gt;berakodva ide:&lt;br/&gt;%2</Hungarian>
<Russian>%1&lt;br/&gt;загружен в&lt;br/&gt;%2</Russian>
<Japanese>%1&lt;br/&gt;&lt;br/&gt;%2へ積み込まれました</Japanese>
<Korean>%1&lt;br/&gt;&lt;br/&gt;%2 에 실림</Korean>
<Chinese>%1&lt;br/&gt;裝載至&lt;br/&gt;%2</Chinese>
<Chinesesimp>%1&lt;br/&gt;装载至&lt;br/&gt;%2</Chinesesimp>
</Key>
<Key ID="STR_ACE_Medical_treatment_PlaceInBodyBag">
<English>Place body in bodybag</English>
<Spanish>Colocar cuerpo en bolsa para cadáveres</Spanish>
Expand Down

0 comments on commit 5e8dcd8

Please sign in to comment.