File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -844,9 +844,17 @@ func (geh gameEventHandler) otherDeath(data map[string]*msg.CSVCMsg_GameEventKey
844844 otherType := data ["othertype" ].GetValString ()
845845 otherID := data ["otherid" ].GetValShort ()
846846 otherPosition := geh .gameState ().entities [int (otherID )].Position ()
847+ wepType := common .MapEquipment (data ["weapon" ].GetValString ())
848+ weapon := getPlayerWeapon (killer , wepType )
847849
848850 geh .dispatch (events.OtherDeath {
849- Killer : killer ,
851+ Killer : killer ,
852+ Weapon : weapon ,
853+ PenetratedObjects : int (data ["penetrated" ].GetValShort ()),
854+ NoScope : data ["noscope" ].GetValBool (),
855+ ThroughSmoke : data ["thrusmoke" ].GetValBool (),
856+ KillerBlind : data ["attackerblind" ].GetValBool (),
857+
850858 OtherType : otherType ,
851859 OtherID : otherID ,
852860 OtherPosition : otherPosition ,
You can’t perform that action at this time.
0 commit comments