Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
552078bb29 | ||
|
|
33be9bf439 | ||
|
|
f0ebe74408 |
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"Name": "Legonzaur.HoloShift",
|
"Name": "Legonzaur.HoloShift",
|
||||||
"Description": "Swap positions with your beloved decoy",
|
"Description": "Swap positions with your beloved decoy",
|
||||||
"Version": "1.0.7",
|
"Version": "1.0.8",
|
||||||
"LoadPriority": 2,
|
"LoadPriority": 2,
|
||||||
"Scripts": [
|
"Scripts": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ bool IsLaunched = false
|
|||||||
if(!player.IsPhaseShifted()){
|
if(!player.IsPhaseShifted()){
|
||||||
if(player in playerDecoyActiveFrom){
|
if(player in playerDecoyActiveFrom){
|
||||||
float chargeCount = float(player.GetOffhandWeapon(1).GetWeaponPrimaryClipCountMax()) - ((Time() - playerDecoyActiveFrom[player])*rechargeMultiplier)
|
float chargeCount = float(player.GetOffhandWeapon(1).GetWeaponPrimaryClipCountMax()) - ((Time() - playerDecoyActiveFrom[player])*rechargeMultiplier)
|
||||||
|
chargeCount = max(chargeCount, 0.0) // can be negative in weird cases
|
||||||
player.GetOffhandWeapon(1).SetWeaponPrimaryClipCount(int(chargeCount))
|
player.GetOffhandWeapon(1).SetWeaponPrimaryClipCount(int(chargeCount))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user