weapon cfg for medpack question


(twt_thunder) #1

Yup,trying to get Things together. But when I try to get Allied skin and axis skin for medpack it just wont work. here’s my config:

weaponDef
{
 // This basically fills out weaponInfo_t
 client {
  //standModel  ""          // weapon pickup 'stand' (do we still use this?)
  pickupModel   "models/multiplayer/medpack/medpack_pickup.md3"
  //pickupSound  "sound/misc/w_pkup.wav"
   axisskin "models/multiplayer/medpack/medpack_axis.skin"
   alliedskin "models/multiplayer/medpack/medpack_allied.skin"
  
  weaponConfig  "models/multiplayer/medpack/weapon.cfg"
  handsModel   "models/multiplayer/medpack/v_medpack_hand.md3"
  
  //flashDlightColor 0 0 0
  flashSound   "sound/misc/bag_toss.wav"    // supports up to 4 flash sounds
  //flashEchoSound ""          // supports up to 4 flash echo sounds
  //lastShotSound  ""          // supports up to 4 last shot sounds
  
  //readySound  ""
  //firingSound  ""         // no weapons seem to use this, basically it's a replacement hum for readysound, but then when firing
  //overheatSound  ""
  //reloadSound  ""
  //reloadFastSound ""         // some weapons have fast reloads due to the skill system
  //spinupSound  ""         // sound started when fire button goes down, and stepped on when the first fire event happens
  //spindownSound  ""         // sound called if the above is running but player doesn't follow through and fire
  //switchSound  ""         // allow overriding of weaponswitch sound
  
  //weaponIcon   "icons/iconw_medheal_1"
  weaponSelectedIcon "icons/iconw_medheal_1_select"
  
  //missileModel  ""
  //missileSound  ""
  //missileTrailFunc ""         // supports "GrenadeTrail", "RocketTrail", "PyroSmokeTrail" and "DynamiteTrail" (we REALLY want a particle system for this)
  //missileDlight  0
  //missileDlightColor 0 0 0       // do we still use this?
  
  //ejectBrassFunc ""         // supports "MachineGunEjectBrass" and "PanzerFaustEjectBrass"
  
  firstPerson {
   model   "models/multiplayer/medpack/v_medpack.md3"
   //flashModel ""
    axisskin "models/multiplayer/medpack/medpack_axis.skin"
    alliedskin "models/multiplayer/medpack/medpack_allied.skin"
  }
  
  thirdPerson {
   model   "models/multiplayer/medpack/medpack.md3"
   //flashmodel ""
    axisskin "models/multiplayer/medpack/medpack_axis.skin"
    alliedskin "models/multiplayer/medpack/medpack_allied.skin"
  }
 }
}

whats wrong? is it hardcoded or what?


(IRATA) #2

Have a look at the console - you should get a parse error (unknown token ?!). As far as I can see axisSkin and alliedSkin keywords are only valid for the view and tag section (not client!) and weapon registration aborts on errors …


(twt_thunder) #3

ok, thanx Irata… then this is not possible without more coding… then I will just make one medpack instead :slight_smile: