Quantcast

Jump to content

» «
Photo

Replaced Pool Cue with weapon - no sound

No replies to this topic
Noken
  • Noken

    Player Hater

  • Members
  • Joined: 29 Apr 2012

#1

Posted 29 April 2012 - 04:55 PM

Hello Community,
I replaced the pool cue with a weapon which i downloaded from the internet.
It was a MG4 which normaly replaces a AK47 so i renamed the two ak47.wdr and .wtd to "w_cue.wdr" and "w_cue.wtd".
Then i replaced the pool cue weapon slot in the weaponinfo.xml with :
CODE
<weapon type="POOLCUE">
 <data slot="MELEE" firetype="INSTANT_HIT" damagetype="BULLET" group="RIFLE_ASSAULT" targetrange="55.0" weaponrange="150.0" clipsize="100" ammomax="9999" timebetweenshots="75">
  <damage base="60" networkplayermod="2.0" networkpedmod="1.0"/>
  <physics force="150"/>
  <reload time="2066" fasttime="1166" crouchtime="2066"/>

  <aiming accuracy="0.6">
   <offset x="0.14" y="10.0" z="0.55"/>
   <crouchedoffset x="0.08" y="10.0" z="0.12"/>
   <reticule standing="0.6" ducked="0.5" scale="0.3"/>
  </aiming>

  <pickup regentime="480000" ammoonstreet="500"/>

  <controller>
   <rumble duration="90" intensity="0.1"/>
  </controller>

  <flags>
   <flag>GUN</flag>
   <flag>CAN_AIM</flag>
   <flag>2HANDED</flag>
   <flag>ANIM_RELOAD</flag>
   <flag>CAN_FREE_AIM</flag>
   <flag>ANIM_CROUCH_FIRE</flag>
  </flags>
 </data>

 <assets model="w_cue">
  <anim group="gun@ak47"/>
  <effects>
   <muzzle fx="muz_machine"/>
   <shell fx="weap_ejected_rifle"/>
  </effects>
 </assets>
</weapon>


Ingame now everything works fine but when i shoot i got no weapon sound, but when i change the "asset model" to w_glock i hear the weapon sound notify.gif


I hope you guys can help me and sorry for bad english biggrin.gif




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users