Skip to content

Commit

Permalink
am braindead lol
Browse files Browse the repository at this point in the history
  • Loading branch information
JMM889901 committed Feb 2, 2022
1 parent 737b7fd commit d1ac024
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PeePee.MutatorPack/mod/scripts/vscripts/stealing.gnut
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ void function SwapWeapons(entity victim, entity attacker){
}
void function SwapAbilities(entity victim, entity attacker){
foreach(entity offhand in attacker.GetOffhandWeapons()){
if(attacker.GetOffhandWEapons().find(offhand) != OFFHAND_INVENTORY){
if(attacker.GetOffhandWeapons().find(offhand) != OFFHAND_INVENTORY){
attacker.TakeWeaponNow(offhand.GetWeaponClassName())}
foreach(entity offhand in victim.GetOffhandWeapons()){
int index = victim.GetOffhandWeapons().find(offhand)
if(index != OFFHAND_INVENTORY){
attacker.GiveOffhandWeapon(offhand.GetWeaponClassName(), index)}
}
}
}
bool function ValidSteal(entity victim, entity attacker){
if ( !victim.IsPlayer() || !attacker.IsPlayer() || GetGameState() != eGameState.Playing )
return false
Expand Down

0 comments on commit d1ac024

Please sign in to comment.