Fixing mapmortar


(Jaquboss) #1

Map mortar weapon file is not loaded and nothing is parsed, so you see no effect and hear no sounds

to fix it :
in CG_LoadWeapons_f
change

BG_WeaponInWolfMP( i )

to

 BG_WeaponInWolfMP( i ) || i == WP_MAPMORTAR

under

 CG_LoadingString( " - weapons" );

( cg_main.c )
do the same

optionaly in cg_ents.c
change

	// convert direction of travel into axis
	if( cent->currentState.weapon == WP_MORTAR_SET ) {

to

	// convert direction of travel into axis
	if( cent->currentState.weapon == WP_MORTAR_SET || cent->currentState.weapon == WP_MAPMORTAR ) {

so if you add missile model it is angled correctly

after that modify mapmortar.weap to change data supplied, adding data from mortar_set file will be the easiest


(IneQuation) #2

Excuse my ignorance, but what’s mapmortar?


(Jaquboss) #3

try mp_beach…
i think it is shooter_mortar, dunno the spawnname