Spawning Question -1 reply

Please wait...

1337Yoda

I'm too cool to Post

50 XP

25th September 2003

0 Uploads

5 Posts

0 Threads

#1 16 years ago

I was wondering if there was a way to spawn custom MP models during a SP mission using the "NPC SPAWN" code?




jedidude

GF Pwns Me!

50 XP

9th September 2003

0 Uploads

49 Posts

0 Threads

#2 16 years ago

Dunno. it would be kind of cool though to spawn a couple of wookies though. EDIT: Couldn't you just type, "npc spawn wookie" or the full path name?




alanpc10

A fairly good scripter

50 XP

25th September 2003

0 Uploads

15 Posts

0 Threads

#3 16 years ago

you would need to edit npcs.cfg in assets0.pk3 with powerarchiver[which i use] or some sort of modding proggy and then copy a similar entry and change some stuff OR you could chuck something like this into a .npc file. Here's an example for you. Wookie //spawn name { FullName "Chewie" playerModel Wookie snd Wookie // 1=worst and 5=best reactions 3 //1-5 how quic the react[duh!] aim 1 //1-5 can they hit you whilst moving? move 3 //1-5 how clever are they at moving aggression 3 // 1-5 how likely to shoot evasion 1 // 1-5 can they dodge well? intelligence 5 // 1-5 beckham or einstien! rank crewman //don't think this matters much but i wouldn't go changing it // player[you],neutral [no-one] or enemy[stormtroopers] playerTeam neutral //team it runs with [player means will run w/ you] enemyTeam neutral //who it shoots [enemy or player] // race human class bartender walkSpeed 55 runSpeed 200 yawspeed 90 dismemberProbHead 10 //how likely thes parts will come off with a saber dismemberProbArms 20 dismemberProbLegs 20 dismemberProbHands 30 dismemberProbWaist 100 } you would make a new file called wookie.npc and either put it in a folder called ext_data in the base dir OR if you can, make a .pk3 and zip that folder up[make sure the path is still \ext_data]. The first one is easier as you can edit it quicker and make it work quicker. Any problem with it?mail me