Perk machine turn on script
Sorry for my english, i don't speak or practice english
Hello, i wan't to know how to set power on, in a custom perk machine. For more info, my problem is to i want set deadshot daikiri in tunnel custom map and i make appear the machine but it need power on and i don't found how to set up on, or where is the document to set that
@Pheonix123 I guess for the machine to appear on, you have to use the machine model "on". Look at the example. I also use custom machines, and I use the "on" models
@Kalitos I try it, but isn't work, i try just changing model or adding lines of off model and on model, an image
@Pheonix123 You can't just make a perk machine appear. You need properly set it up in script with custom code if the machine isn't on the map which Deadshot isn't.
I'd check zombies++ to see how Cahz did it for his custom perks rather than try to use the Bonus Survival Maps system which is just modified vanilla perk spawning.
@JezuzLizard I suspected it, and I look for documents that I could change but I don't find them, so can I create them? or i need the structure of the original CSG but changing that?
Sry im new in this, so if you can explain a little bit more i thank you so much
@Pheonix123 Like I said you should look at zombies++ to see how he did custom perks. https://forum.plutonium.pw/topic/1005/release-zm-zombies?_=1651022112968
@Pheonix123 should work, just add
level.tunnelPerkArray = array( "specialty_armorvest", "specialty_rof", "specialty_fastreload", "specialty_longersprint", "specialty_scavenger", "specialty_weapupgrade", "specialty_quickrevive" );Because specialty_deadshot is considered within the perks. At least in tranzit.
Edit: Forget it, it doesn't work with "deadshot", I already tried it.
@Kalitos The way Treyarch did the perk script assumes every perk is available on every map because they wanted a global script to handle multiple different perks. Just because code relating to or referencing is in _zm_perks.gsc doesn't mean the perk will work in every map.
The default perk code will crash if you try to give a perk not on a map to a player because it can't find the perk bottle weapon. Also the clientfield won't work either so it won't show up in the UI, but the perk icon wouldn't be available anyway.