Skip to content

Commit

Permalink
fixed broken trader speedup
Browse files Browse the repository at this point in the history
  • Loading branch information
Shtoyan committed Feb 3, 2022
1 parent 1f573dc commit 0ea6441
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Classes/FPPSettings.uc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var config float SineModMultiplier;
var config float Post6ZedsPerPlayer; // modifier for zed count (>6 player team)

var config int TraderTime; // set our desired trader time
var config float TraderSpeedBoost; // how much to speed up
var config int StartingDosh; // doshhhh
var config int MinRespawnDosh; // doshhhh

Expand All @@ -39,6 +40,7 @@ defaultproperties
Post6ZedsPerPlayer=0.400000

TraderTime=45
TraderSpeedBoost=1.75
StartingDosh=8000
MinRespawnDosh=8000

Expand Down
11 changes: 10 additions & 1 deletion Classes/FPPSpeedInventory.uc
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
class FPPSpeedInventory extends Inventory;

var float fPenalty;

replication
{
reliable if (Role == ROLE_Authority)
fPenalty;
}


simulated function float GetMovementModifierFor(Pawn InPawn)
{
return class'Helper'.static.GetSpeedMod();
return fPenalty;
}
Binary file modified Classes/FleshpoundParty.uc
Binary file not shown.
Binary file modified Classes/Helper.uc
Binary file not shown.
2 changes: 1 addition & 1 deletion Configs/FleshpoundParty.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ BaseSpawnTime=0.3
SineModMultiplier=1
Post6ZedsPerPlayer=0.400000
TraderTime=45
TraderSpeedBoost=1.75
StartingDosh=8000
MinRespawnDosh=8000
bDisableSlomo=true
Expand All @@ -19,7 +20,6 @@ MapInfo=(MapName="KF-Manor",Difficulty=0.75,MaxZombiesOnce=50)
MapInfo=(MapName="KF-Cross",Difficulty=0.50,MaxZombiesOnce=50)

[FleshpoundParty.Helper]
TraderSpeedBoost=1.75
MSG_Trader="%wALL %yTRADERS %wARE OPEN!"
MSG_BigZeds="%wOnly %rBIG %wzeds will appear on this wave!"
MSG_Fleshpounds="%wOnly %rFleshpounds %wwill appear on this wave!"
Expand Down

0 comments on commit 0ea6441

Please sign in to comment.