Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "bodygroup" {
- "button" "B" // this is the button that brings up the menu, and it can be the same on everything
- "menu" {
- "1" {
- "name" "Sights" // this defines what the 1 bodygroup name is
- "UseSprite" "1" // defines a sprite it can use instead of a name
- sprite {
- "file" "sprites/hud_weapons"
- "x" "128"
- "y" "66"
- "width" "64"
- "height" "32"
- }
- }
- "2" {
- "name" "Silencer"
- "UseSprite" "1"
- sprite {
- "file" "sprites/hud_weapons"
- "x" "128"
- "y" "66"
- "width" "64"
- "height" "32"
- }
- }
- }
- "1" { //this is the bodygroup, you have to figure out what bodygroup groups are what number
- "name" "Red Dot" // name of the body group
- "number" "1" // this defines what number it is in the menu
- "UseButton" "0" // Uses the "use" button to turn on and off, even if selected
- "LowerWeapon" "1" // Lowers and hides the weapon before toggling the bodygroup, isn't really needed
- "UseIronsight" "0" // Turns on if ironsight is on
- "DeactivateinReload" "0" // Turns off in reload
- "EnableSecondaryFire" "1" // Enables Secondary fire while this bodygroup is on, not sure how this would work
- "EnableIronsight" "1" // Ironsights can only be used if this bodygroup is on.
- "ChangeDamage" "40" // Changes damage to this value.
- "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
- SoundData
- {
- "reload" "Weapon_SMG1.Reload"
- "reload_npc" "Weapon_SMG1.NPC_Reload"
- "empty" "Weapon_SMG1.Empty"
- "single_shot" "Weapon_SMG3.Single"
- "single_shot_npc" "Weapon_SMG3.NPC_Single"
- "special2" "Weapon_SMG1.Double"
- }
- "ChangeIronsight" "1" // Changes Ironsight when on
- IronSight {
- "right" "2.85"
- "up" "0.2"
- "AdjustAccuracy" "0.4"
- }
- }
- "2" { here is a real silencer segment
- "name" "Silencer"
- "number" "2"
- "LowerWeapon" "1"
- "ChangeDamage" "35"
- "ChangeSoundData"
- SoundData
- {
- "single_shot" "Weapon_SMG3.Silenced.Single"
- }
- }
- }
- // |-----------------------------------------------------------|
- // | Sights Red Dot | // This is the selected bodygroup for the 1 menu group, and since 1 was named Sights, it goes as sights
- // | | // if you press 1 again, it would go onto the next bodygroup assinged to 1. so red dot could turn into ACOG or something
- // | |
- // | |
- // | |
- // | |
- // | Underbarrel Laser Sight | // Was not defined up above, but it goes the same way
- // | |
- // | |
- // | |
- // | |
- // | |
- // | |
- // | Muzzle Silencer | // Ditto
- // | |
- // | |
- // |-----------------------------------------------------------|
- // imagine bigger numbers than that
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement