Mut: Per Server Stats

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

lilaznkilla

FNG / Fresh Meat
Jul 17, 2009
34
0
0
Australia
I've made some tweaks to a modified version of the mutator(Not sure which version it is based on) to add refill functions for multiple guns with secondary ammunition. A problem I've encountered is that the trader doesn't get the ammo prices even if I set it statically.
Spoiler!
 

FluX

Grizzled Veteran
Oct 26, 2010
5,379
234
63
www.fluxiserver.co.uk
You have probably got the wrong code inside the UpdateMyBuyables function in the SRKFBuyMenuInvList.uc file. Double check all the ammo parts and compare to Marco's source.
 

lilaznkilla

FNG / Fresh Meat
Jul 17, 2009
34
0
0
Australia
It is kinda odd though, I did a copy and paste for the adding the MyBuyable info then modified the code using TWI's as a reference. MyBuyable.ItemAmmoCost is what sets the ammo price, it is quite strange that it grabs all the other info for MyBuyables just fine.

Code:
MyBuyable.ItemName      = MyPickup.default.SecondaryAmmoShortName;
MyBuyable.ItemDescription   = KFWeapon(CurInv).default.Description;
MyBuyable.ItemCategorie     = KFLR.EquipmentCategories[MyPickup.default.EquipmentCategoryID].EquipmentCategoryName;
MyBuyable.ItemImage     = KFWeapon(CurInv).default.TraderInfoTexture;
MyBuyable.ItemWeaponClass   = KFWeapon(CurInv).class;
MyBuyable.ItemAmmoClass     = KFWeapon(CurInv).default.FireModeClass[1].default.AmmoClass;
MyBuyable.ItemPickupClass   = MyPickup;
MyBuyable.ItemCost      = (float(MyPickup.default.Cost) *  KFV.static.GetCostScaling(KFPlayerReplicationInfo(PlayerOwner().PlayerReplicationInfo),  MyPickup)) / DualDivider;
[COLOR=Lime]MyBuyable.ItemAmmoCost      =  10;//MyPickup.default.AmmoCost *  KFV.static.GetAmmoCostScaling(KFPlayerReplicationInfo(PlayerOwner().PlayerReplicationInfo),  MyPickup)                                          *  KFV.static.GetMagCapacityMod(KFPlayerReplicationInfo(PlayerOwner().PlayerReplicationInfo),  KFWeapon(CurInv));[/COLOR]
MyBuyable.ItemFillAmmoCost  = (int(((MaxAmmo - CurAmmo) *  float(10/*MyPickup.default.AmmoCost*/)) /  float(KFWeapon(CurInv).default.MagCapacity))) *  KFV.static.GetAmmoCostScaling(KFPlayerReplicationInfo(PlayerOwner().PlayerReplicationInfo),  MyPickup);
MyBuyable.ItemWeight        = KFWeapon(CurInv).Weight;
MyBuyable.ItemPower     = MyPickup.default.PowerValue;
MyBuyable.ItemRange     = MyPickup.default.RangeValue;
MyBuyable.ItemSpeed     = MyPickup.default.SpeedValue;
MyBuyable.ItemAmmoCurrent   = CurAmmo;
MyBuyable.ItemAmmoMax       = MaxAmmo;
MyBuyable.bMelee            = (KFMeleeGun(CurInv)!=none || MyBuyable.ItemAmmoClass==None);
MyBuyable.bSaleList     = false;
MyBuyable.ItemPerkIndex     = MyPickup.default.CorrespondingPerkIndex;
 

gogi

FNG / Fresh Meat
Jun 21, 2011
23
2
0
About Weapon categories

About Weapon categories

Hello everybody,In newest SP we can see weapon categories, but i don't have see this categories i have see old classic weapon classes without categories.
hope,you will help me
sorry for my very bad English
 

Dave_Scream

FNG / Fresh Meat
Jan 24, 2010
160
12
0
36
Russia, Rostov-on-Don
vkontakte.ru
Hello everybody,In newest SP we can see weapon categories, but i don't have see this categories i have see old classic weapon classes without categories.
hope,you will help me
sorry for my very bad English

have you add in serverperksV5.ini categories section
Code:
TraderInventory=3:UnitedMut.MP5MPickupEx
TraderInventory=2:KFMod.BenelliPickup
TraderInventory=1:KFMod.Magnum44Pickup
TraderInventory=1:KFMod.Dual44MagnumPickup
TraderInventory=3:KFMod.M4Pickup
TraderInventory=0:KFMod.ClaymoreSwordPickup
TraderInventory=5:KFMod.HuskGunPickup
TraderInventory=6:KFMod.M4203Pickup
WeaponCategories=Category1
WeaponCategories=Category2
WeaponCategories=Category3
WeaponCategories=Category4
WeaponCategories=Винтовки
WeaponCategories=Огонь
WeaponCategories=Гранатометы
WeaponCategories=Бомбы-Гранаты
WeaponCategories=Остальное
 

gogi

FNG / Fresh Meat
Jun 21, 2011
23
2
0
no man,it's in ServerPerksMut, when i deleted all categories in this file , but category "all" i can't deleted
 

codepilot

Member
Mar 21, 2011
54
8
8
34
Las Vegas, Nevada
Anyone have issues with entires in the remote database blanking out since the remote database file was updated? had a few dozen reports of this on netksy been having to manaually fix them off a backup ;p
 

lth886

FNG / Fresh Meat
Oct 12, 2010
14
0
0
Can I change the perk immediately in the shop after wave 1?

PC: Not during wave 1.
 

FluX

Grizzled Veteran
Oct 26, 2010
5,379
234
63
www.fluxiserver.co.uk
Can I change the perk immediately in the shop after wave 1?

PC: Not during wave 1.
You not able to change perk during trader time then? Im having this problem. Same with knife being the most priority weapon too. Run out of ammo/spawn and it gives you the Knife instead of another weapon.
 

FluX

Grizzled Veteran
Oct 26, 2010
5,379
234
63
www.fluxiserver.co.uk
I can change perk during trader time after wave 2 and so on, but not after wave 1. :(
My server allows it to change during mid-wave (says it'll change for next trader time) and when im in the trader (this is without choosing perk mid-wave) it also wants to wait till next.
 

lth886

FNG / Fresh Meat
Oct 12, 2010
14
0
0
My server allows it to change during mid-wave (says it'll change for next trader time) and when im in the trader (this is without choosing perk mid-wave) it also wants to wait till next.
Yes I can also change during mid-wave, and it notices me it will change AFTER THE END OF THE WAVE, however my hobby was changing perk at trader. ;)

However when I am at trader after wave 2, I can change perk IMMEDIATELY at trader.

BTW Let me play your server when I have time. :)
 
Last edited:

FluX

Grizzled Veteran
Oct 26, 2010
5,379
234
63
www.fluxiserver.co.uk
BTW Let me play your server when I have time. :)
Server is up 24/7 unless I have it down temporarily for updates (which is rare these days) or when the control panel it runs on is having network problems. Hope to see you there :)

Have this problem too.. Change perk in trader time - sometimes immediately sometimes says that in next wave only.

will check about it only wave 1 problem or other waves too.
Sounds like it is just me, i'll just redo the perk changing system back to the one someone coded up previously as the fix at the time (old one I used and works great).
 

pipo

FNG / Fresh Meat
Apr 22, 2011
34
0
0
is there a way to save the original steam ID?

uZQme.jpg


Data.ini
[75956550]
Old=124935,33,10,18,30,5,1,15,20,20,10,10,1,20,15,10,55,15,20,1,1,17,1,25,1,1,1,1,3,1,2,7,1,0,1,1,1,3,0,0,0
 
Last edited:

King Sumo

FNG / Fresh Meat
Jan 8, 2011
503
15
0
Brazil
www.youtube.com
Open SRKFQuickPerkSelect.uc and remove strings:
Code:
 for( i=j; i<ArrayCount(PerkSelectIcons); ++i )
 {
     PerkSelectIcons[i].Image = None;
     PerkSelectIcons[i].Index = -1;
 }

we find:
Code:
 if ( Sender.IsA('KFIndexedGUIImage') && KFIndexedGUIImage(Sender).Index>=0 )
and replace:
Code:
 if ( Sender.IsA('KFIndexedGUIImage') )

Next we find:
Code:
  MaxPerks = Min(S.CachePerks.Length,ArrayCount(PerkSelectIcons));
and replace:
Code:
  MaxPerks = Min(S.CachePerks.Length,8);

Original posted prototype22

this is cosmetics, as the mutator doesn't allow perk selection during trade time...