16
Modding / Re: [FH2 2.45] Crash problem
« on: 20-07-2012, 17:07:30 »
Squadleader weapon code was simplified. We must trick the BF2 engine into displaying the secondary weapon. Example stg44 nco code:
Easier to recreate your custom kit from 2.45's objects_server.zip/kits/gw/gw_nco_stg44.inc
Place it in .con in custom archive. No need to then link it from tmp.con.
Code: [Select]
ObjectTemplate.addTemplate StG44
ObjectTemplate.addTemplate alt_GW_NCO_StG44
ObjectTemplate.create ItemContainer alt_GW_NCO_StG44
ObjectTemplate.addTemplate G43
ObjectTemplate.replaceItem StG44
ObjectTemplate.unlockLevel 1
Easier to recreate your custom kit from 2.45's objects_server.zip/kits/gw/gw_nco_stg44.inc
Place it in .con in custom archive. No need to then link it from tmp.con.