Jump to content

Possibility of modding item sound with attachments?


Urby

Recommended Posts

Along the lines of adding new guns and attachments. I'm wondering how one might go about, for example, attaching a suppressor to a gun and with that attachment, modify the guns "SwingSound" and "SoundRadius" Only while the specific mod is attached.

Link to comment
Share on other sites

 

Umm, I feel that there may have been a misunderstanding. I don't mean adding new guns an attachments. But for example...

 

Where a X2 Scope modifies Min and Max range

 

    item x2Scope
    {
        Type = WeaponPart,
        DisplayName = x2 Scope,
        Icon = Scope2x,
        Weight = 0.3,
        WeightModifier = 0.3,
        MaxRangeModifier = 7,
        MinRangeModifier = 6,
        MountOn = HuntingRifle; VarmintRifle,
        PartType = Scope,
        Tooltip = Tooltip_Scope,
    }
 
I was thinking of making a supresson item that could do something like
 
SwingSoundModifier = "SupressorNoiseFile"
SoundRadiusModifier = -30
 
I guess what I mean is. Is this possible through an easy method, otherwise how would I go about coding it in Lua. The reason I'd rather link an attachment is that it can be reusable for other objects.
Link to comment
Share on other sites

Mmmmh.. you mean something like a "silencer"?

Im not sure, but i think the mod i mentioned before contains silencers for pistols or rifles..

 

I would like to search inside of its code but im at work and unable to do something for fun at the moment :D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...