So I'm working on an expansion mod of Der Riese (which you can see more of in the works in progress subsection), and I was wondering how it's possible to script in other perks into the map. I know it's definitely possible, after looking at xSanchez78's Der Riese mod and lilrifa's Nacht Der Untoten revamp mod, but I have no idea where to start. Any experienced scripters out there that have any idea? Thanks
first you will need someway of showing your players origin and angle, then a script to place your perk as needed, heres my versions of those i used in my nacht and verruckt mod
the first bit - ( (514.322, 986.874, 142) ) is the coordinates to place the perk at, when using the first script it will say your origin, when you find a nice place, put those coordinates here
2nd bit - (0, 0, 0) is the angle or rotation of the perk, you should only need to change the middle one unless your perk is going to be on an angle
3rd bit - ( "zombie_vending_cherry" ) is the perks model, the machine to be used, this should of been added to your mod.csv, and probably should be a precachemodel( model_name ) before this line
4th bit - ( "vending_cherry" ) is the machines targetname, its also the triggers target
5th bit - ( "specialty_gpsjammer" ) is the specialty the perk uses, should be the script_noteworthy of the perk trigger
last thing, this makes it so you dont buy the perk y just standing next to it
Dude, you're AMAZING! I'll be sure to try it out and let you know how it goes. Thank you!
EDIT: Okay, so for the first part, I just paste that script at the bottom of nazi_zombie_factory.gsc? Or do I make it as it's own separate gsc? Because I simply pasted it at the end of nazi_zombie_factory, and nothing changed.
Last Edit: January 21, 2017, 05:00:04 am by jiggy22
Dude, you're AMAZING! I'll be sure to try it out and let you know how it goes. Thank you!
EDIT: Okay, so for the first part, I just paste that script at the bottom of nazi_zombie_factory.gsc? Or do I make it as it's own separate gsc? Because I simply pasted it at the end of nazi_zombie_factory, and nothing changed.
you will need to call the script, you cant just place a script function and expect it to activate itself
add level thread development_get_coordinates();
under /*-------------------- FUNCTION CALLS - POST _Load ----------------------*/ in your mapname gsc
Thanks, that finally worked. If anybody's having the same issue, and there's no "FUNCTION CALLS - Post Load" section in your gsc file, you can instead paste it at the very top under "maps\nazi_zombie_factory_fx::main();" (mine used for reference). Double Post Merge: January 23, 2017, 11:31:27 pmOkay, so now here comes the next issue that I'm facing. I'm using the models found in Harry's perk pack for my mod, but because his pack messes up my mod whenever I install it, I don't have any of his gscs installed in my mods folder. I successfully have the perk model in my map, but you can walk through it and it doesn't turn on. Any way I can get the perks to work without having to install his gsc files?
Of course, I could just ask if anybody knows how I could fix the problems I'm having with his perk pack instead. When I load up my game, the perks aren't purchasable, and the hand icon pops up in place of the "Place and Hold F to buy etc". Has anybody been able to fix this?
Last Edit: January 23, 2017, 11:31:27 pm by jiggy22
i dont think your going to be able to use harrys perks, since they replace the patch file and this is an existing map. i made my own perks, didnt use anyones tutorial or anything so im not sure if its possible
i dont think your going to be able to use harrys perks, since they replace the patch file and this is an existing map. i made my own perks, didnt use anyones tutorial or anything so im not sure if its possible
Yeah, that makes sense! I'm planning on using his exported xmodels only, but I'm guessing I would have to add the functions of the perk into the _zombiemode_perks gsc file instead, right? I'm guessing for Deadshot, it wouldn't be too too difficult. All that the perk needs to do is to multiply the crosshair by .45 or so, increase damage on headshots, and award 40 extra points per headshots. How would I start to go about with scripting this? Thanks again, you've really been a big help with all of this for me!
Thanks again for the help, I always appreciate it! Okay, so now the perk is solid. I have the functions of the perk at the bottom of the perks gsc, and it is called at the top. But still nothing changes. Do I have to reference the specialty in the materials folder in my gsc? Or did I just mess something up in the gsc? On top of that, how do I make it so that: - The perk makes the rattling noise when I walk into it. - Find change when you go prone.
Here's the code that I'm using right now for Deadshot, but I'll probably add more to it.
Hey, so I did all of that, and still nothing changed. Even when the power is on, when I walk up to the machine, all it says is that I still need to turn the power on. Any chance you can take a look at my perk gsc and tell me what I did wrong? Thank you so much, sorry that I've made this 10 times more complicated than it should have been!
turn_deadshot_on() { machine = getentarray("vending_deadshot", "targetname"); //temp until I can get the wire to jugger. level waittill("juggernog_on");