Restricting weapon kits - bazooka only
Posted: Wed Aug 08, 2018 9:54 pm
Hello all,
I have never done any Bf1942 modding before. I read the guide and quickly made an edit to a few maps which is very basic and sets all the kits on each team to be bazooka only.
This works (annoying that it has to be painstaking done for each map) but it is a very basic edit and I think I can remember back in the glory days of BF1942 that some servers had a count restriction on the number of weapon kits a team could have (I remember the sniper class was often restricted). This could limit a kit to x number of people playing as it or have a restriction of 0 so the kit could not be selected. Or so I believe; this was a long time ago now.
So my question is rather than use the method I have used above is there a more elegant way to do it? The solution must be a server side mod that does not require download by each client. I have searched the forum but was not able to easily find anything other than the guide I used to do the above.
As a side note, when disabling a weapon, which .con is the code (example below) entered into?
Thanks all for your help.
I have never done any Bf1942 modding before. I read the guide and quickly made an edit to a few maps which is very basic and sets all the kits on each team to be bazooka only.
Code: Select all
game.setTeamSkin 1 JapaneseSoldier
game.setKit 1 0 Jap_AT
game.setKit 1 1 Jap_AT
game.setKit 1 2 Jap_AT
game.setKit 1 3 Jap_AT
game.setKit 1 4 Jap_AT
game.setTeamSkin 2 USMarineSoldier
game.setKit 2 0 UsMarine_AT
game.setKit 2 1 UsMarine_AT
game.setKit 2 2 UsMarine_AT
game.setKit 2 3 UsMarine_AT
game.setKit 2 4 UsMarine_AT
This works (annoying that it has to be painstaking done for each map) but it is a very basic edit and I think I can remember back in the glory days of BF1942 that some servers had a count restriction on the number of weapon kits a team could have (I remember the sniper class was often restricted). This could limit a kit to x number of people playing as it or have a restriction of 0 so the kit could not be selected. Or so I believe; this was a long time ago now.
So my question is rather than use the method I have used above is there a more elegant way to do it? The solution must be a server side mod that does not require download by each client. I have searched the forum but was not able to easily find anything other than the guide I used to do the above.
As a side note, when disabling a weapon, which .con is the code (example below) entered into?
Code: Select all
ObjectTemplate.Active GrenadeAllies
ObjectTemplate.setInputFire c_PIMouseLook
ObjectTemplate.velocityDependentOnHeat 0
ObjectTemplate.heatAddWhenFire 0