• Announcements

    • Brentonator

      Forum Rules (Please Read)

      Hello everyone and welcome to the No More Room In Hell Forums! We greatly appreciate your interest and support. Please feel free to begin post and become a part of this community. But please make sure that you read and understand the following rules so things can stay as clean and as orderly as possible around here. These rules are expected to be follow by any and all members at all times. Disobeying these rules will result in disciplinary action by a moderator. #1. Off color remarks are acceptable but can be deemed inappropriate at the discretion of the moderators. #2. Flaming and disrespecting other members of this community or this mod is strictly prohibited. #3. Please do not post links relating to warez or illegal downloading. #4. No offensive content is to be posted (gore, dead babies, porn). #5. Please do not spam topics to increase your post count. #6. No excessively large signatures. Signatures that violate this will be modified. #7. Signatures are not to be used as a spamming tool. If your signature's sole purpose is to annoy or distract other members, it will be removed. #8. Please do your part to be as friendly, respectful, and helpful to anyone and everyone on this forum. #9. Your posts may be removed at any time at our sole discretion. #10. Remember the terms of your registration...a copy is posted below but may not represent the latest version of our terms of use. #11. No advertising other communities or products. Have fun.
Sign in to follow this  
Followers 0
yomox9

Change zombie skin by map

5 posts in this topic

Movie:

20160318_193647_4.jpg

Procedure:

1. Put Zombie(i.e. npc_nmrih_runnerzombie). Name zombie
2. Put point_template ( Name pt1. Template 1 zombie )
3. Put func_button x 3.
(1) OnPressed pt1 ForceSpawn (for spawn zombie )
(2) OnPressed zombie AddOutput modelindex 1 (for Change skin to fast.mdl)
(3) OnPressed zombie AddOutput modelindex 2 (for Change skin to bateman_infected.mdl)
4. Compile map
5. Play map
6. Type "cl_precacheinfo modelprecache" in console
7. Find index of model ( i.e. bateman_infected.mdl = 80 / fast.mdl = 204 )
8. In hammer editor, Change index.
(2) OnPressed zombie AddOutput modelindex 1→204 (for Change skin to fast.mdl)
(3) OnPressed zombie AddOutput modelindex 2→80 (for Change skin to bateman_infected.mdl)
9. Compile map and Play map

----------------------------------------------------------------------------------------------

Key points
1. Put Zombie(i.e. npc_nmrih_runnerzombie). Name zombie
20160317_235958.JPG
----------------------------------------------------------------------------------------------
6. Type "cl_precacheinfo modelprecache" in console
7. Find index of model ( i.e. bateman_infected.mdl = 80 / fast.mdl = 204 )

] cl_precacheinfo modelprecache

Precache table modelprecache: 205 of 4096 slots used
000: (None): 004: *3 (RES_FATALIFMISSING | RES_PRELOAD): never used
20 refs, first 0.00 mru 0.00
001: maps/nms_test.bsp (RES_FATALIFMISSING | RES_PRELOAD): 005: models/player/p_molotov.mdl (RES_FATALIFMISSING | RES_PRELOAD): 4 refs, first 0.00 mru 0.00
never used
002: *1 (RES_FATALIFMISSING | RES_PRELOAD): 006: models/player/p_wally.mdl (RES_FATALIFMISSING | RES_PRELOAD): 31 refs, first 0.00 mru 0.00
never used
003: *2 (RES_FATALIFMISSING | RES_PRELOAD): 007: models/player/p_hunter.mdl (RES_FATALIFMISSING | RES_PRELOAD): 21 refs, first 0.00 mru 0.00
never used
27399 refs, first 0.00 mru 0.00
008: models/player/p_bateman.mdl (RES_FATALIFMISSING | RES_PRELOAD): 011: models/player/p_butcher.mdl (RES_FATALIFMISSING | RES_PRELOAD): never used
never used


080: models/nmr_zombie/bateman_infected.mdl (RES_FATALIFMISSING | RES_PRELOAD): never used
149 refs, first 0.00 mru 0.00


204: models/zombie/fast.mdl (RES_FATALIFMISSING | RES_PRELOAD): 53 refs, first 0.00 mru 0.00

----------------------------------------------------------------------------------------------
8. In hammer editor, Change index.
(2) OnPressed zombie AddOutput modelindex 1→204 (for Change skin to fast.mdl)
20160317_234616.JPG

Share this post


Link to post
Share on other sites

While this might seem useful at first, I advice you not to use this. The modelindizes do not persist between map and game versions, meaning that a future nmrih update is going to break your map - hard. Then there's also the issue with the animations and collisionmodels which do not change with the model since the command is purely cosmetic. Worst case scenario being a crawler here.

Share this post


Link to post
Share on other sites

I updated this. Thank you~ >Atheist

hm.... I understand it. It's right. Thanky you for advice > durkhaz

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0