PDA

View Full Version : Bolt Action Rifles Only CFG for Spearhead


Sticky
07-17-2003, 02:46 PM
I have installed mam, et al, and wrote the following cfg file so that I could enable the changes with one entry in the console. The weapon changes take place, but the skin forces do not. Now if the allies are not British they do not get a weapon, thus why I wanted to force skins. Here is the CFG file:

//Bolt Action Only Mod Turn Off
append MAM_cmdRegister "180 |sayi Bolt Action Rifles Only Mode Running;"

sets security_american "allied_british_6th_airborne_paratrooper"
sets security_german "german_waffenss_shutze"

///////////////////////////////////////////////////////////////////////////////
//force_skins and force_models
//if you want to make it so everyone has the same skin, set force_skins to 1
//if you want to make it so no one can turn on foremodels set force_models to 1
//They make the player switch their skins/models every 20 seconds.
///////////////////////////////////////////////////////////////////////////////

seta force_skins 1
seta force_models 1

//Weapons

seta weapon_garand 0
seta weapon_springfield 0
seta weapon_bar 0
seta weapon_thompson 0
seta weapon_bazooka 0
seta weapon_alliedshotgun 0
seta weapon_colt45 0
seta weapon_alliednade 0

//Allied Weps, Spearhead
seta weapon_enfield 1
seta weapon_webley 1
seta weapon_sten 0
seta weapon_nagantrifle 0
seta weapon_svt 0
seta weapon_nagantrevolver 0
seta weapon_ppsh 0

seta weapon_millsgrenade 1
seta weapon_russiannade 0
seta weapon_russiansmoke 0
seta weapon_m18smoke 1

//Axis Weapons!

seta weapon_mauzer 1
seta weapon_kar98 0
seta weapon_mp44 0
seta weapon_mp40 0
seta weapon_panzerschreck 0
seta weapon_axisshotgun 0
seta weapon_p38 1
seta weapon_axisnade 0


//axis weapons, spearhead
seta weapon_g43 0
seta weapon_axissmoke 1
//global weapons
seta weapon_portablemg42 0

Also does anyone know the weapon code for the german grenade launcher?

UnDead
07-17-2003, 05:20 PM
Hey,

Hmm, Buzz might have some suggestions for this. I haven't tried forcing skins this way. Hmm. Maybe make another config file and put a line in this config like
===============================================
//Bolt Action Only Mod Turn Off
append MAM_cmdRegister "180 |sayi Bolt Action Rifles Only Mode Running;"

exec forceskins.cfg

//Weapons

seta weapon_garand 0
seta weapon_springfield 0
etc etc.
===============================================

Then in the other config setup those skin forces. NOW REMEMBER THIS MIGHT BE WHAT YOU MISSED. Did you include the line
seta MAM_Security 1

without mam_security being set to 1 the skin forcing won't work or at least shouldn't work :). edit::::::Not sure about this. I don't think you need to turn it on for the skins to work....

Trying making the 2nd config include these lines.
==============================================
forceskins.cfg
==============================================

seta MAM_Security 1

sets security_american "allied_british_6th_airborne_paratrooper"
sets security_german "german_waffenss_shutze"

seta force_skins 1
seta force_models 1

===============================================

Also see if the germans change but allies don't. It might be something with the allied skin, sometimes you need to have certain letters in caps for them to work.

Also do restart after this to see if it takes effect after a restart. etc.


Second question. http://www.mohadmin.com/nuke/module...showpage&pid=26
Basically this dmflag (DF_GERMAN_SHOTGUN 1048576), replaces the nade gun. Remove this number from your total dmflags number and you will have the nade gun.

For example. Your server is setup for LEAN ON and German shotgun.

The dmflag would be 262144+1048576=1310720
So if you want the german nade gun subtract 1048576 from 1310720 and you will just have Lean On and the German nade gun.

I hope you understand :)
UnDead

Sticky
07-17-2003, 06:40 PM
Thanks that help alot, it was the addition of the line

seta MAM_Security 1

that did it!

Sticky
07-17-2003, 06:42 PM
WE are using the nade gun, but how do we disable it with buzzgoodies?

Buzz_Litebeer
07-17-2003, 08:51 PM
if you use MAM_Security 1 there is code you should probablyh delete, just go in and see how it is implemented and get rid of the honesty config stuff.

UnDead
07-17-2003, 09:45 PM
Don't think that the nade rifle was included in the list. To get around this I would use the dmflag for Axis SHotgun in your config file and then disable the axis shotgun. :)

Sticky
07-18-2003, 12:08 AM
Thanks, Why didn't I think of that!