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

Author Topic: Randomize NPC weapons dont spawn  (Read 1671 times)

0 Members and 1 Guest are viewing this topic.

Offline Predalienator

  • *
  • +1% chance to make useful post
  • Predalienator has no influence.
Randomize NPC weapons dont spawn
« on: May 20, 2012, 09:40:49 AM »
Apparently the script below does succeed in randomizing the npc weapons but custom weapons dont appear. The NPC's dont have any weapons when a custom weapon is supposed to spawn. But when using the npc_create equipment weapon_custometc they can spawn with the custom weapon. Any ideas on getting the custom weapon to spawn randomly with using npc_create equipment?

Code: [Select]
//
// SMOD npc weapon randomize setting (sample)
//

WeaponRandomizeData
{
"default_map" {



"npc_combine_s"
{
    "weapon_smg1" "10"
"weapon_shotgun" "10"
"weapon_ar2" "10"
"weapon_lasergun" "10"
"weapon_ak47" "10"
"weapon_kar98" "10"
"weapon_grease" "10"
"weapon_mp5" "10"
"weapon_svd" "10"
"weapon_rpg" "5"
"weapon_custom3     "5"
"weapon_custom2"    "5"
"weapon_custom4"    "10"
"weapon_custom8"    "10"
"weapon_custom10"   "10"
"weapon_custom11"   "10"
"weapon_custom13"   "10"
"weapon_custom15"   "10"
"weapon custom16"   "10"
"weapon_custom30"   "10"
"weapon_custom17"   "10"
"weapon_custom5"    "10"

}

"npc_combine_e"
{

"weapon_custom3     "20"
"weapon_custom2"    "20"
"weapon_custom4"    "10"
"weapon_custom8"    "10"
"weapon_custom10"   "10"
"weapon_custom11"   "10"
"weapon_custom13"   "10"
"weapon_custom15"   "10"
"weapon custom16"   "10"
"weapon_custom30"   "10"
"weapon_custom17"   "10"
"weapon_custom5"    "10"

}

"npc_metropolice"
{

"weapon_pistol" "10"
"weapon_smg1" "10"
"weapon_grease" "10"
"weapon_mp5" "10"
"weapon_custom28"   "10"
"weapon_custom29"   "10"
"weapon_custom24"   "10"

}

"npc_combine_ace"
{

"weapon custom16"   "10"
"weapon_custom30"   "10"
"weapon_custom17"   "10"



}

"npc_citizen"
{

"weapon_pistol" "10"
"weapon_smg1" "10"
"weapon_grease" "10"
"weapon_mp5" "10"
"weapon_custom28"   "10"
"weapon_custom29"   "10"
"weapon_custom24"   "10"
"weapon_custom3     "1"
"weapon_custom2"    "1"
"weapon_custom4"    "10"
"weapon_custom8"    "10"
"weapon_custom10"   "10"
"weapon_custom11"   "10"
"weapon_custom13"   "10"
"weapon_custom15"   "10"
"weapon custom16"   "10"
"weapon_custom30"   "10"
"weapon_custom17"   "10"
"weapon_shotgun" "10"
"weapon_ar2" "10"
"weapon_ak47" "10"
"weapon_kar98" "10"
"weapon_rpg" "7"
"weapon_custom5"    "10"
}

"npc_f_combine"
{
"weapon_custom3     "10"
"weapon_custom2"    "10"
"weapon_custom4"    "10"
"weapon_custom8"    "10"
"weapon_custom10"   "10"
"weapon_custom11"   "10"
"weapon_custom13"   "10"
"weapon_custom15"   "10"
"weapon custom16"   "10"
"weapon_custom30"   "10"
"weapon_custom17"   "10"
"weapon_shotgun" "10"
"weapon_ar2" "10"
"weapon_ak47" "10"
"weapon_kar98" "10"
"weapon_rpg" "7"
"weapon_custom5"    "10"
}

"default_npc" {
"weapon_custom3     "10"
"weapon_custom2"    "10"
"weapon_custom4"    "10"
"weapon_custom8"    "10"
"weapon_custom10"   "10"
"weapon_custom11"   "10"
"weapon_custom13"   "10"
"weapon_custom15"   "10"
"weapon custom16"   "10"
"weapon_custom30"   "10"
"weapon_custom17"   "10"
"weapon_rpg" "10"
"weapon_custom5"    "10"
}

   }


}

Offline Counter-Life™

  • *
  • *
  • +17% chance to make useful post
  • Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!Counter-Life™ is a rising star!
    • Youtube Channel
Re: Randomize NPC weapons dont spawn
« Reply #1 on: May 20, 2012, 12:44:54 PM »
You have npc_randomize_weapon at 1?

Offline Predalienator

  • *
  • +1% chance to make useful post
  • Predalienator has no influence.
Re: Randomize NPC weapons dont spawn
« Reply #2 on: May 20, 2012, 01:13:34 PM »
Yep also this is unrelated but the bloom commands for smod dont seem to work anymore. Last time I played smod was in 08.

Offline BIZ

  • 32-Bit Hobo
  • *
  • *
  • +0% chance to make useful post
  • BIZ hides in shadows.
    • BSNOOCH.COM
Re: Randomize NPC weapons dont spawn
« Reply #3 on: May 20, 2012, 02:27:15 PM »
Code: (find) [Select]
"weapon_custom3     "5"
This entry appears several times in your script. It is missing a closing quotation, so the games stops reading all entries after it. It should look like this:

Code: (replace) [Select]
"weapon_custom3"     "5"
Use the Replace function of your text editor to fix

Offline Predalienator

  • *
  • +1% chance to make useful post
  • Predalienator has no influence.
Re: Randomize NPC weapons dont spawn
« Reply #4 on: May 20, 2012, 03:02:53 PM »
Aha thank you very much  :D