4 Commits
Author SHA1 Message Date
Legonzaur d28c654ee5 Merge pull request #2 from x3Karma/patch-1
Fix crash when offhand is empty
2022-03-01 11:45:49 +01:00
x3Karma 9b3250e499 Fix crash when offhand is empty 2022-03-01 13:36:32 +08:00
Nathan TIEN YOU 2fddd8e732 Merge branch 'main' of https://github.com/Legonzaur/Legonzaur.HoloGaming 2022-02-07 22:29:29 +01:00
Nathan TIEN YOU edc4b8fecd add version number because I forgot 2022-02-07 22:29:28 +01:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"Name": "Legonzaur.HoloShift",
"Description": "Swap positions with your beloved decoy",
"Version": "0.3",
"Version": "1.0.4",
"LoadPriority": 2,
"Scripts": [
{
+2 -2
View File
@@ -25,7 +25,7 @@ int recharge_remove = 1
{
if ( IsValid(player) && IsAlive( player ))
{
if(player.GetOffhandWeapon(1).GetWeaponClassName() == "mp_ability_holopilot"){
if( IsValid(player.GetOffhandWeapon(1)) && player.GetOffhandWeapon(1).GetWeaponClassName() == "mp_ability_holopilot"){
Assert(player)
if(!player.IsPhaseShifted()){
int chargeCount = player.GetOffhandWeapon(1).GetWeaponPrimaryClipCount()
@@ -58,4 +58,4 @@ int recharge_remove = 1
}
#endif
#endif