UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: CraftDAnimations on November 08, 2016, 08:44:03 pm

Title: Purchase Perks From Wallbuy / Model
Post by: CraftDAnimations on November 08, 2016, 08:44:03 pm
I was wondering if anyone knows if it is possible to have it set so I can purchase say Quick Revive from a model or wallbuy via a Trigger?
Title: Re: Purchase Perks From Wallbuy / Model
Post by: sevengpluke on November 08, 2016, 10:11:21 pm
I haven't done anything zombies related yet but isn't there a trigger included with the prefab? If so then that same trigger you can just use the same kvp's on your newly created trigger.
Title: Re: Purchase Perks From Wallbuy / Model
Post by: Dust on November 08, 2016, 11:12:59 pm
I haven't done anything zombies related yet but isn't there a trigger included with the prefab? If so then that same trigger you can just use the same kvp's on your newly created trigger.

There isn't a trigger included in the prefab since the trigger is spawned in via script.

Havent had a chance to look at the perks script, but you should still be able to find out what KVPs they used and then make your own trigger with those same KVPs
Title: Re: Purchase Perks From Wallbuy / Model
Post by: CraftDAnimations on November 09, 2016, 12:20:34 am
I had a look through _zm_perk_quick_revive.gsc and created a "trigger_use" with the following kvps :

(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fimage.prntscr.com%2Fimage%2F8e3398226f34403bbe40e86be1620b98.png&hash=78412a28732ff840f7672df27affaa0bb200abb8)

When I go up to it it says I need to turn power on but even when I turn power on it continues to say this
Title: Re: Purchase Perks From Wallbuy / Model
Post by: Dust on November 09, 2016, 12:34:21 am
I had a look through _zm_perk_quick_revive.gsc and created a "trigger_use" with the following kvps :

(http://image.prntscr.com/image/8e3398226f34403bbe40e86be1620b98.png)

When I go up to it it says I need to turn power on but even when I turn power on it continues to say this

You also need a script_noteworthy for the trigger, which is referenced in the main perks.gsc file. Not entirely sure what the actual name is for it, but try this one specialty_quickrevive
Title: Re: Purchase Perks From Wallbuy / Model
Post by: CraftDAnimations on November 09, 2016, 12:42:33 am
That worked a treat - works perfectly now - thank you.
Title: Re: Purchase Perks From Wallbuy / Model
Post by: CraftDAnimations on November 10, 2016, 06:09:43 pm
Just a quick update.  With Quick Revive (as shown in this example) you can purchase QR and it appears as an icon but when you go down in SOLO it doesn't work.  The game just ends.  Anyone know why?
Title: Re: Purchase Perks From Wallbuy / Model
Post by: reckfullies on November 10, 2016, 06:17:29 pm
Just a quick update.  With Quick Revive (as shown in this example) you can purchase QR and it appears as an icon but when you go down in SOLO it doesn't work.  The game just ends.  Anyone know why?

Take a look at the QR perk kvps specifically since it might have a special kvp or something that makes it work for solo.
Title: Re: Purchase Perks From Wallbuy / Model
Post by: CraftDAnimations on November 10, 2016, 06:45:25 pm
I'll see what I can see.  Whats weird is it realises I am in solo as its only 500 points to buy.

Update - None of the perk effects seem to be working.  They all show animation of getting perk, plays perk jingle and also adds icon to list BUT none actually work