Swapping NPCs

I'm trying to make my first SRTT mod. I grabbed the equipment and thought of tweaking this that and that. Then I came to NPC swap: I would like to have STAG soldiers as cops. I opened up character_definitions.xtbl and found lines starting with:

Code:
<Character><Name>npc_cop</Name><_Editor> (...)
<Character><Name>npc_cop_alejandro</Name><_Editor> (...)
<Character><Name>npc_cop_Austin</Name><_Editor> (...) (...)

1) Can somebody explain me, please, what's the difference between "npc_cop" and "npc_cop_name"? I tohught it was some kind of inheritance, but stil, "npc_cop" seems to also define some stuff for "npc_cop_name".

2) When I try to replace .cmeshx, .rigx and animsets game crashes or acts like there were no changes at all. Is it possible to swap models/animations within XTBL files or I need to lurk to str2_pc files?

Sorry if it's too much to take, but could you please point me out, what the heck am I doing wrong?
 
I would suggest to edit the character.xtbl instead.

Open the file and look for the cop's character line:

<Character><Name>npc_cop_alejandro</Name><_Editor><Category>Entries:LawEnforcement:police</Category></_Editor><Character>npc_cop_alejandro</Character>... (bold is for the name of the model)

Just replace the name of the model for the STAG's one:

<Character><Name>npc_cop_alejandro</Name><_Editor><Category>Entries:LawEnforcement:police</Category></_Editor><Character>npc_law_stag</Character>...

Do the same for the others cops, save the file and paste on your SRTT main directory...

Luck!
 
Thank you. Finally I managed to get it to work (had to change only one line though "<Character><Name>npc_cop</Name><_Editor><Category>Entries:LawEnforcement:police</Category>...").
 
...not for long ;) Would you mind lending me a hand also with this issue? Vanilla SRTT spawns cops in different varaitions (skin color etc.). When I change npc_cop model (inside character.xtbl like eprunega adviced me - thanks once again!) to npc_law_stag, game engine spawns this new model... but variations are sadly gone. Is there any way to have different characters used as cops? I had tried few things but always failed miserably.

1) character.xtbl, line 17 - "npc_cop" is followed by bunch of "npc_cop_name". Swapping their models (like in "npc_cop" case) does nothing in game, changing "non ambiently spawnable" stream category/flag doesn't help either.

2) spawn_info_groups.xtbl, line 297 - I understand that this line is responsible for spawning cops on the streets. I added a line for another character but "<Character>npc_cop_alejandro</Character>" nor "<Character>npc_kinzie</Character>" nor "<character>npc_winnie_the_pooh</character>" didn't work. What's more, game engine succesfully randomizes STAG soldiers from 4 models avaible (line 322)... so what's preventing cops from doing the same?

In search for answers I gave "character_definitions.xtbl" (line 111) a closer look. "Npc_cop" has different heads and personas defined. My guess is that game variate cops by giving them different heads (Cop_AM_02 etc.) but then those variations aren't really my issue (since I set cop model to "npc_law_stag" and with that being done game shouldn't really bother inherting anything from character_definitions.xtbl's line 111).

So as for now I'm really confused. I tried this and that in many different combinations... but still, nothing! Any clues or tips? :)
 
Back
Top