Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "bodygroup"
- {
- "reddot.smd" {
- "bind" "A" //Not sure if possible to do this, but would be nice.
- "Toggle" "1" // Toggles bodygroup if it gets input.
- "UseButton" "1" // Uses the "use" button to turn on.
- "LowerWeapon" "1" // Lowers and hides the weapon before toggling the bodygroup.
- "UseIronsight" "1" // Turns on if ironsight is on.
- "DeactivateinReload" "1" // Turns off in reload.
- "ChangeIronsight" "1" // Changes Ironsight when on
- IronSight {
- "right" "2.85"
- "up" "0.2"
- "AdjustAccuracy" "0.4"
- }
- }
- // Those are the main options I could think of if you're just adding a sight or maybe a laser sight.
- // Other options could involve enabling secondary fire or changing damage value, sounds, and other things. I thought that would be too complicated so I didn't include it in the above. Those are the options I would mainly want. Here is some other ones that would be nice to have.
- "EnableSecondaryFire" "1" // Enables Secondary fire while this bodygroup is on.
- "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.
- // Here is a real example of a bodygroup for an ACOG.
- "bodygroup"
- {
- "acog.smd" {
- "bind" "p"
- "Toggle" "1"
- "LowerWeapon" "1"
- "ChangeIronsight" "1"
- IronSight {
- "right" "2.85"
- "up" "0.2"
- "AdjustAccuracy" "0.4"
- }
- }
- // Here is an another example for a laser sight. Very simple. This will be included within the bodygroup block.
- "laser.smd" {
- "bind" "o"
- "Toggle" "1"
- }
- }
- // So basically that's all you need to do. If this is very hard to implement I understand.
- // Thanks for reading.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement