Quote:
Originally Posted by luki1412
You're changing the values for GetRandomInt incorrectly.
Remember, it's generating a random number from the specified range, inclusively. 0 means the stock weapon. The game gives them stock weapons and I have to remove them and give them different ones. Stock weapons the game gives them sometimes dont show up correctly when pressing F. If we get a 0 from GetRandomInt, I dont do anything and just move to another slot, if we get a nonzero, we Remove their weapon from that slot and the switch statement gives them another weapon based on the value. So the range in GetRandomInt HAS to have corresponding cases in the switch statement(excluding 0).
I do not know what exactly are you trying to achieve with my plugin. Are you trying to give them all melee weapons only?
|
Yeah, i guess i could list whatever i wanted to do with your plugin.
GENERAL:
Disable most melee unlocks, skins: i tried to make it simplier by disabling those melees that just dont give a lot of effect, plus bots dont use melee that often.
SCOUT:
primary: default scattergun, FAN, BFB
secondary: bonk!, crit cola, mad milk, cleaver
melee: default bat, candy cane
SOLDIER:
primary: default launcher, black box, liberty, cowmangler
secondary: banners only; buff banner, battalions, concheror
melee: default shovel
PYRO:
primary: default flamethrower
secondary: flares only; flaregun, scorchshot (bots cant detonate detonator, cant extinguish with mannmelter)
melee: default axe
DEMOMAN:
primary: Ali baba wee booties
secondary: chargin targe
melee: eyelander
HEAVY:
primary: default minigun, natascha, tommislav
secondary: default shotgun
melee: default fists
ENGINEER:
primary: default shotgun, frontier justice
secondary: default pistol
melee: the jag
MEDIC:
primary: default syringe gun
secondary: default medigun, kritzkrieg, quick fix
melee: ubersaw (i have an ai improver plugin which enables medic bot melee)
SNIPER:
primary: huntsman
secondary: default smg, jarate, razorback, darwin shield, cozy camper
melee: default melee, trivalian shiv, shahansha, bushwacka
SPY:
secondary(revolvers): default revolver, le'tranger, diamondback
melee: default knife, big earner, YER, ice cicle, kunai
sapper: default sapper, recorder
watch: default watch