Advertisement
ArcheKruz

Knife UpSound Woes

Aug 27th, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. //The SNDINFO.txt
  2.  
  3. weapons/knife/attack SWING01
  4. weapons/knife/hitwall HITWAL01
  5. weapons/knife/hit HIT01
  6. weapons/knife/draw DRAW01
  7. $volume weapons/knife/draw 0.7
  8.  
  9. //The Knife Decorate Code
  10.  
  11. actor KnifePuff
  12. {
  13. Renderstyle Translucent
  14. Alpha 0.5
  15. VSpeed -1
  16. Mass 1
  17. +NOBLOCKMAP
  18. +NOGRAVITY
  19. +ALLOWPARTICLES
  20. +RANDOMIZE
  21. +NOEXTREMEDEATH
  22. +PUFFONACTORS
  23. activesound "weapons/knife/attack"
  24. attacksound "weapons/knife/hitwall"
  25. seesound "weapons/knife/hit"
  26. States
  27. {
  28. Spawn:
  29. PUFF A 4 bright
  30. PUFF B 4
  31. Melee:
  32. PUFF CD 4
  33. Stop
  34. }
  35. }
  36.  
  37. Actor SSAEKnife : Weapon replaces Fist
  38. {
  39. Weapon.Kickback 0
  40. Weapon.SelectionOrder 4000
  41. Weapon.UpSound "weapons/knife/draw" //The sound I want played then selecting the weapon, however it doesn't play at all.
  42. Weapon.SlotNumber 1
  43. Weapon.SlotPriority 1
  44. Weapon.BobRangeX 0.1
  45. Weapon.BobRangeY 0.8
  46. Weapon.BobSpeed 2.4
  47. +WEAPON.AXEBLOOD
  48. +WEAPON.NOALERT
  49. +WEAPON.AMMO_OPTIONAL
  50. +WEAPON.MELEEWEAPON
  51. Obituary "%k cut %o to pieces."
  52. States
  53. {
  54. Ready:
  55. NIFR A 1 A_WeaponReady
  56. loop
  57. Deselect:
  58. NIFD A 1 A_Lower
  59. loop
  60. Select:
  61. TNT1 A 1
  62. TNT1 A 0 A_GiveInventory("357OneChamber",6)
  63. TNT1 A 0 A_GiveInventory("357TwoChambers",12)
  64. TNT1 A 0 A_TakeInventory("SpinMeter",8)
  65. Goto SeLoop
  66. SeLoop:
  67. NIFD A 0 A_Raise
  68. NIFD A 1 A_Raise
  69. Loop
  70. Fire:
  71. PUNG BB 1 A_SetAngle(angle - 2.4)
  72. PUNG C 1 A_SetAngle(angle - 4)
  73. PUNG D 1 A_SetAngle(angle + 0.7)
  74. PUNG D 1 A_SetAngle(angle + 4)
  75. PUNG D 0 A_CustomPunch(100,1,2,"KnifePuff",96,0)
  76. PUNG D 1 A_SetAngle(angle + 4)
  77. PUNG DDD 1 A_SetAngle(angle + 6)
  78. PUNG DDDD 1 A_SetAngle(angle + 1.4)
  79. PUNG DDD 1 A_SetAngle(angle + 0.7)
  80. PUNG D 2
  81. PUNG DDD 1 A_SetAngle(angle - 0.6)
  82. PUNG CCC 1 A_SetAngle(angle - 1.2)
  83. PUNG CCC 1 A_SetAngle(angle - 1.8)
  84. PUNG BBBBB 1 A_SetAngle(angle - 2.4)
  85. NIFD AAAA 1 A_SetAngle(angle - 0.7)
  86. NIFD A 0 A_Refire
  87. Goto Ready
  88. }
  89. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement