So you’ve done the first class?How was it?Failed eh…?Hahah losers!
If you don’t get the first lesson,don’t bother beginning here =)
Please first learn and know lesson 1,then come here for the cooler part(cuz its written by Deso,not by Storm.).
Today,thou shall learn about making a Sp map much like the ladder series.That is the first ladder,because the second ladder contains some scripting,which will be reserved for another lesson.
So off we go…First,as usual,make a basic room.Then,inside the room,rightclick on the viewpoint window,and a menu will pop up.There,choose NPC,because we want to place an NPC in the room.For those who don’t know what an NPC is,an NPC is a player that is controlled by the computer,artificial intelligence.If ye still don’t get it,ye have 2 choices,”ART” or go hire the movie A.I.
Now,another menu pops up.So now you see a whole list of NPC,and yes,you can place them all in your little room if you like =p
But for this example,we’re gone place a reborn there.So choose NPC>NPC_reborn.
Now a little red box should pop up in your room.This is the source where the reborn will spawn from.
If you just leave it there like that,and add your “info>playerstart” ,he’ll just stand there from in the beginning.
Since that is the intention,leave him like that.Never forget you playerstart if you want your map to be playable,I know you know,but I’ve had it before,making a whole map,compile for an hour,and then realising I forgot a playerstart…
So what we want to happen now is,after the reborn dies horribly,we want 4 other reborns to spawn and confront you!!!!Scary aint it?..i know it isn’t =)
Just follow the next steps very carefully,its quiete simple,but you have to realise it very carefully.
Select the first reborn,that is already just standing in your map.Open up the properties lenu with selecting him and pushing “n” on your keyboard.
There you see a the properties of your selected entity,which now is the reborn.
If you want a reborn to activate something when he dies(Very important!!Read this part several times.) here’s what you have to do:
Type in the KEY window : NPC_target
And in the value window : secondwave
All these things are case sensitive,which means it does make a difference if you work with capitals or not.
So what we’ve done now is basically tell the reborn to activate all things that are called “secondwave” after he dies.
Now the next step,create the 4 other reborns.Again,rightclick the viewports window and choose NPC_reborn.After you’ve done that,you can simply copy him by pushing space.We need 4 of these reborns,so place them around your room,or put them together,same for me.
Select one of the 4 reborns,and type…
KEY : targetname
Value : secondwave
Do this for every reborn,that means select each of the 4 reborns and type that.What you cant do,and would actually save us a lot of work,is selecting the 4 reborns and typing it in once.What would happen is one would be called secondwave,another secondwave1,the thired seconwave2 and the fourth secondwave3.
That is not the intention.What you Can do is select them anyway,type It once,and then selecting each reborn separately and removing the 1,2 and 3.
Look at this!Look at your 3d view!!You can see pointers emerge from that first reborn to the other 4!So if you’d test your map now,after slaying the first reborn,the other 4 would spawn outo thin air.
First try all this,and if you’ve got that working,move on to the next part of this lesson.
So it worked eh,jolly fun slicing those reborns up eh =p
The next step is ,after slaying the 4 reborns,you want another 4(for eample) to try to kill you.
This is a little more difficult.
But here goes nuttin’ =)
Select the 4 reborns(the secondwave ones)separately and type…
KEY : NPC_target (since we want them to activate something after they die)
Value : Thirdwavecounter
Now rightclick,and go under the target section,and choose target_counter.What a target_counter does is when he’s activated,he counts to 1,if hes activated again,he changes to 2.And you can enter how many time she has to count before he activates something.
So type,while havin the target_counter selected and the “n” window up…
KEY : targetname
Value : Thirdwavecounter
Also
KEY : count
Value :4 (This will make him count 4 times before activating his targets.)
Also
KEY : target
Value :Thirdwave.
After all this,make 4 reoborns and call them thirdwave by doing this:
Key : targetname
Value : Thirdwave
If ye have pointers going from the secondwavereborns to the counter,and pointers going from the counter to the thridwave,yer in the clear.
Never connect anything in SP with Control+K…Allways type,It’ll be safer and will avoid bugs.
So now you can repeat this process with any NPC…Gives you a big opertunity to do many things to make a cOOlness map.
Things to remember:
- Targetname is the REAL name of the entity
- NPC_target is ONLY for NPC’s,and will activate its targets after the NPC dies.
- Target is works for everything ecept NPC’s(look at the previous rememberpoint.)
- A counter counts 2 times default.
Happy Spmapping! =)
____________________________________________________