Hello, I just had a question to ask I am running Open Warfare and I am wanting to have just Sniper Class is there a way to disable the others at all. I have tried many things somehow; I am unable to take them out so other players that join my server don’t use the guns.
You can force players to use the Sniper Rifle, but you’ll need some programming knowledge for that. I’ll leave a small example for you.
if (level.gameType == "dm" && level.script == "mp_killhouse" || level.script == "mp_shipment" || level.script == "mp_iceworld")
{
player takeAllWeapons();
player giveWeapon( "remington700_mp" );
player giveWeapon( "m40a3_mp" );
player switchToWeapon("m40a3_mp");
for(;;)
{
player giveMaxAmmo("remington700_mp");
wait 1;
player giveMaxAmmo("m40a3_mp");
wait 1;
}
}
In that small example you can see that I made some specifications, both in maps and game type so that it only gives snipers to the players, you can do it directly without needing to specify game type or maps.
The other option would be to download the OpenWarfare source code and manually remove the weapons from the entire menu, etc.
greetings!
Great thank you so much for the feedback. currently trying to learn some programming myself I am hoping to see if i can give players sniper rifles that is all:)
Imo the best option is to just disable the other classes so that players can only pick sniper class. You may want to remove ammo for pistols then, up to you.
I have tried doing that and somehow the class was still enabled
Maybe this helps @Fluffy
Yes, i have also checked that and disabled them somehow it still shows.
