Skip to content

Commit

Permalink
Add Smash Windshield action (#6152)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dystopian authored and PabstMirror committed Nov 2, 2018
1 parent b83ac02 commit db9834c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/interaction/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,11 @@ class CfgVehicles {
statement = "";
insertChildren = QUOTE(_this call DFUNC(addPassengersActions));
};
class GVAR(smashWindshield) {
displayName = CSTRING(SmashWindshield);
condition = QUOTE(_player == driver _target && {private _damage = _target getHitPointDamage 'HitGlass1'; _damage > 0.5 && {_damage < 1}});
statement = QUOTE(playSound3D [ARR_2('A3\Sounds_F\weapons\hits\glass_2.wss',_target)]; _target setHitPointDamage [ARR_2('HitGlass1',1)];);
};
};
};

Expand Down
9 changes: 9 additions & 0 deletions addons/interaction/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1091,5 +1091,14 @@
<Chinese>拿出屍體</Chinese>
<Chinesesimp>拿出尸体</Chinesesimp>
</Key>
<Key ID="STR_ACE_Interaction_SmashWindshield">
<English>Smash windshield</English>
<German>Frontscheibe einschlagen</German>
<French>Dégager le pare-brise</French>
<Czech>Vyrazit čelní sklo</Czech>
<Russian>Выбить лобовое стекло</Russian>
<Polish>Wyłam szybę</Polish>
<Hungarian>Szélvédő széttörése</Hungarian>
</Key>
</Package>
</Project>

0 comments on commit db9834c

Please sign in to comment.