I was wondering if it's possible (and if it's hard) to add perks (just the models) to existing maps by scripting. I want to create a MOD for Der Riese and Shi No Numa (and maybe other WAW maps) and Black Ops Kino der Toten for example. I just want to have things like new guns and new perks like Flopper in all maps and Stamina up.
However, since you can't edit existing maps, I really want to add them by scripting. However, I don't know if it's possible (I heard it is) and how hard would it be? And would it work the same for Black ops as for WAW, or will it be a lot different?
Don't say that I shouldn't start this because I'm asking this question I'm not a complete noob. No hate please.
EDIT:
I did Google this already, couldn't find a single thing.
Last Edit: June 29, 2015, 04:59:00 pm by JoshZombieBoy
I was wondering if it's possible (and if it's hard) to add perks (just the models) to existing maps by scripting.
Code Snippet
Plaintext
model = spawn("script_model", ORIGIN); // origin is the xyz axis u want it to be at model.angles = self.angles; model setmodel("PERK_MODEL");
thats to spawn a model. as for the mod, just go root\mods and make a folder called what ever you want. then inside it put a maps folder and copy _zombiemode from root\raw\maps into it
Last Edit: June 29, 2015, 08:30:57 pm by liamsa669
model = spawn("script_model", ORIGIN); // origin is the xyz axis u want it to be at model.angles = self.angles; model setmodel("PERK_MODEL");
thats to spawn a model. as for the mod, just go root\mods and make a folder called what ever you want. then inside it put a maps folder and copy _zombiemode from root\raw\maps into it
Ahaha alright, of course models would be useless without trigger etc... are any examples used already in WAW? Or would I just need to search a trigger in the script files for example how to create the trigger? I'm sorry if I sound a bit noobish but I'm not really a professional scripter (however I learn things really quick)
Well that's basicly all you need to know You could look in _laststand, the revive-trigger is a trigger_radius being spawned in. To make it work as a trigger_use you could do something like this maybe:
Code Snippet
Plaintext
while(IsDefined(trigger)) { trigger waittill("trigger", player );
if( !isplayer( player ) ) { continue; }
// check for laststand etc
trig_time = 0; trig_used = false; while( player istouching( trigger ) && player usebuttonpressed() ) { if( player usebuttonpressed() ) { trig_time+=0.1; }
Oh I see, I might try it out later since I really would love to see all perks in default maps. Honestly I think I might be struggling with it for a while but well I just stay positive! Still thanks for all the help. Double Post Merge: June 30, 2015, 09:03:28 amHow can I get my scripts work for Black Ops? I've edited the zombie_cod5_prototype.gsc file, made a MOD just like rollonmath42's tutorial (if I remember correctly), compiled it (with the edited zombie_cod5_prototype.gsc in my IWD), changed the .iwd to iw_42.iwd, changed mod.ff to zombie_cod5_prototype_patch.ff but in-game nothing changed. Please help (I've never modded BO zombies)
Last Edit: June 30, 2015, 09:03:28 am by JoshZombieBoy