Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How to add custom NPCs on the maps?  (Read 1517 times)

0 Members and 1 Guest are viewing this topic.

Offline SMOD guy

  • *
  • +3% chance to make useful post
  • SMOD guy has no influence.
How to add custom NPCs on the maps?
« on: December 23, 2019, 09:25:44 AM »
Hi, everybody. Some time ago I got a model of a cremator. (From HL2 Beta) Also I got scripts (for correct operation of sounds) sounds and texture. I wanted to add it to the map using mapadd (Using Mapadd Generator 2.4) But I don't know how. Can you help me with that?

Greetings from Russia!

Offline Pepsifan04

  • *
  • *
  • +12% chance to make useful post
  • Pepsifan04 is on the verge of being accepted.Pepsifan04 is on the verge of being accepted.Pepsifan04 is on the verge of being accepted.Pepsifan04 is on the verge of being accepted.Pepsifan04 is on the verge of being accepted.
Re: How to add custom NPCs on the maps?
« Reply #1 on: January 04, 2020, 10:33:26 PM »
This model would need to be applied to an NPC first (check npc_replace_model.txt inside scripts folder)
Then all you need to do is to add that npc to spawn via mapadd.

I don't know much about mapadd generator, or how it works, but usually something like that is enough:
Code: [Select]
"npc_metropolice" // npc of your choice
{
"origin" "352 -2672 576" "angle" "14 -95 0" // npc position on spawn
"keyvalues"
{
"additionalequipment" "weapon_custom2" // weapon that it's gonna use, you can delete this part if it's a zombie or similar
}
}
Officially Unofficial BSNOOCH Discord:
https://discordapp.com/invite/eBqezeR

Offline SMOD guy

  • *
  • +3% chance to make useful post
  • SMOD guy has no influence.
Re: How to add custom NPCs on the maps?
« Reply #2 on: January 08, 2020, 12:50:54 PM »
Thank you for help! :)

Greetings from Russia!

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal