The file is a problem as it is a big mod file. But here's the code: (In case if it's not enough, i will try to provide the minimum as to not give a bunch of non-useful stuff)
The CVARInfo:
Code: Select all
//Hello! This defines the scrap spawn rate, where they spawn, and some other stuff. Nothing too complex, i hope.
//Bool = Yes or no.
//Int = Any number or value, eg "Rarely, Normal, Frequent" (1, 2 ,3) and so on
//Just writing this to remind myself.
server int cl_ScrapMultiplier = 2;
server bool cl_HPnArmorSpawn = TRUE;
server int cl_HPnArmorSpawnChance = 4;
server bool cl_SmallAmmoSpawn = TRUE;
server int cl_SmallAmmoSpawnChance = 4;
server bool cl_BigAmmoSpawn = TRUE;
server int cl_BigAmmoSpawnChance = 4;
//Values for spawning True Scavenger!, Very Rarely, Rarely, Normal, Frequent, Super Frequently, Always
//Values according: (5%) , (15%) , (25%), (45%), (75%) , (90%) , (100%)
//This values in 256 bit will be like this: (12.8) , (38.4) , (64) , (115.2), (192), (230.4) , (256) <-- Th
(The scrap multiplier was a bool, but i changed it in hope it would fix it, it didn't.)
The ScrapMultiplier part on the MenuDef:
Code: Select all
//Slider "Multiply the amount of scrap required to upgrade.", "cl_ScrapMultiplier", 0.25, 2.5, 0.25, 2
//NumberField "Multiply the amount of scrap required to upgrade.", "cl_ScrapMultiplier" ,0.25, 2.5, 0.25
Option "Multiply the amount of scrap required to upgrade.", "cl_ScrapMultiplier", "ScrapMultiplier"
StaticText "Multiply the amount of scrap required to upgrade by this value. "
StaticText ""
The ACS to print the message: (The same as the one you gave me)
Code: Select all
Script "PrintCostMessageMinigun" (void)
{
int mult;
If(GetCVar("cl_ScrapMultiplier")==0){mult=0.25;}
If(GetCVar("cl_ScrapMultiplier")==1){mult=0.5;}
If(GetCVar("cl_ScrapMultiplier")==2){mult=0.75;}
If(GetCVar("cl_ScrapMultiplier")==3){mult=1.0;}
If(GetCVar("cl_ScrapMultiplier")==4){mult=1.25;}
If(GetCVar("cl_ScrapMultiplier")==5){mult=1.5;}
If(GetCVar("cl_ScrapMultiplier")==6){mult=1.75;}
If(GetCVar("cl_ScrapMultiplier")==7){mult=2.0;}
If(GetCVar("cl_ScrapMultiplier")==8){mult=2.25;}
If(GetCVar("cl_ScrapMultiplier")==9){mult=2.5;}
Print(s:"This upgrade cost \ci", f:FixedMul(90,mult), s:" scraps. \c-Are you sure? (Use again)");
}
And.. Yeah, that is pretty much it. Anything missing?