Advertisement
Guest User

bodygroup concept

a guest
Jan 20th, 2015
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.03 KB | None | 0 0
  1. "bodygroup" {
  2. "button" "B" // this is the button that brings up the menu, and it can be the same on everything
  3. "menu" {
  4. "1" {
  5. "name" "Sights" // this defines what the 1 bodygroup name is
  6. "UseSprite" "1" // defines a sprite it can use instead of a name
  7. sprite {
  8. "file" "sprites/hud_weapons"
  9. "x" "128"
  10. "y" "66"
  11. "width" "64"
  12. "height" "32"
  13. }
  14. }
  15. "2" {
  16. "name" "Silencer"
  17. "UseSprite" "1"
  18. sprite {
  19. "file" "sprites/hud_weapons"
  20. "x" "128"
  21. "y" "66"
  22. "width" "64"
  23. "height" "32"
  24. }
  25. }
  26. }
  27. "1" { //this is the bodygroup, you have to figure out what bodygroup groups are what number
  28. "name" "Red Dot" // name of the body group
  29. "number" "1" // this defines what number it is in the menu
  30. "UseButton" "0" // Uses the "use" button to turn on and off, even if selected
  31. "LowerWeapon" "1" // Lowers and hides the weapon before toggling the bodygroup, isn't really needed
  32. "UseIronsight" "0" // Turns on if ironsight is on
  33. "DeactivateinReload" "0" // Turns off in reload
  34. "EnableSecondaryFire" "1" // Enables Secondary fire while this bodygroup is on, not sure how this would work
  35. "EnableIronsight" "1" // Ironsights can only be used if this bodygroup is on.
  36. "ChangeDamage" "40" // Changes damage to this value.
  37. "ChangeSoundData" "1" // Changes sound files if bodygroup is on. You put sounddata after this like normal. Anything changed in the following sounddata overwrites the original
  38. SoundData
  39. {
  40. "reload" "Weapon_SMG1.Reload"
  41. "reload_npc" "Weapon_SMG1.NPC_Reload"
  42. "empty" "Weapon_SMG1.Empty"
  43. "single_shot" "Weapon_SMG3.Single"
  44. "single_shot_npc" "Weapon_SMG3.NPC_Single"
  45. "special2" "Weapon_SMG1.Double"
  46. }
  47. "ChangeIronsight" "1" // Changes Ironsight when on
  48. IronSight {
  49. "right" "2.85"
  50. "up" "0.2"
  51. "AdjustAccuracy" "0.4"
  52. }
  53. }
  54. "2" { here is a real silencer segment
  55. "name" "Silencer"
  56. "number" "2"
  57. "LowerWeapon" "1"
  58. "ChangeDamage" "35"
  59. "ChangeSoundData"
  60. SoundData
  61. {
  62. "single_shot" "Weapon_SMG3.Silenced.Single"
  63. }
  64. }
  65. }
  66. // |-----------------------------------------------------------|
  67. // | Sights Red Dot | // This is the selected bodygroup for the 1 menu group, and since 1 was named Sights, it goes as sights
  68. // | | // if you press 1 again, it would go onto the next bodygroup assinged to 1. so red dot could turn into ACOG or something
  69. // | |
  70. // | |
  71. // | |
  72. // | |
  73. // | Underbarrel Laser Sight | // Was not defined up above, but it goes the same way
  74. // | |
  75. // | |
  76. // | |
  77. // | |
  78. // | |
  79. // | |
  80. // | Muzzle Silencer | // Ditto
  81. // | |
  82. // | |
  83. // |-----------------------------------------------------------|
  84. // imagine bigger numbers than that
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement