UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Replace Vending Machines models

broken avatar :(
Created 7 years ago
by Wolfplayer
0 Members and 1 Guest are viewing this topic.
1,912 views
broken avatar :(
×
broken avatar :(
Location: ruMoscow
Date Registered: 21 March 2016
Last active: 4 years ago
Posts
30
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
Personal Quote
RTCW Modder
×
Wolfplayer's Groups
Is there a way to change model of the vending machine?
I tried to do it through KVP model, new model appears in the editor but in the game I got original perk machine model.
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 1 November 2013
Last active: 3 years ago
Posts
61
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
hajhaka's Groups
hajhaka's Contact & Social Links
check the gscs.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I think you can redefine it in the perks gsh, but I haven't tried including the perks gsh, or another other perk script in order to override, in mod or map yet.

For example, in _zm_perk_quick_revive.gsh, you'll see this:

Code Snippet
Plaintext
#define QUICK_REVIVE_MACHINE_DISABLED_MODEL		"p7_zm_vending_revive"

Of course now you'll have to copy that gsh to your map or mod and add it to zone. Not sure if it will work, but that is where it gets the model to set in your _zm_perk_quick_revive.gsc and so on. If it doesn't overwrite it in you map folder, you'll have to create a mod in order to overwrite it.
You could always try to manually override it in the gsc replacing the text where it sets the model, but you could run into the same issue as I just said with the gsh. Sorry, I haven't gotten around to check these yet.
Last Edit: November 30, 2016, 09:18:52 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: ruMoscow
Date Registered: 21 March 2016
Last active: 4 years ago
Posts
30
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
Personal Quote
RTCW Modder
×
Wolfplayer's Groups
So, I copied _zm_perk_quick_revive.gsc; _zm_perk_quick_revive.csc and _zm_perk_quick_revive.gsh into my map scripts folder.
In gsh file I did this:
Code Snippet
Plaintext
#define QUICK_REVIVE_MACHINE_DISABLED_MODEL		"p7_crate_wood_vintage"
#define QUICK_REVIVE_MACHINE_ACTIVE_MODEL "p7_crate_wood_vintage"

After that I went to my zone_source folder and opened my .zone file:
Code Snippet
Plaintext
scriptparsetree,scripts/zm/_zm_perk_quick_revive.gsc
scriptparsetree,scripts/zm/_zm_perk_quick_revive.csc
scriptparsetree,scripts/zm/_zm_perk_quick_revive.gsh

In game i got standard model again. Will investigate further.

P.S Maybe it is easier to create a simple script, that will give me the perk, that I can put near model?
Last Edit: December 01, 2016, 09:19:14 am by Wolfplayer

 
Loading ...