ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Changing monster part count and chance

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  19:49:53  5 October 2012
profilee-mailreply Message URLTo the Top
Heinzfaust
Senior Resident
 

 
On forum: 04/07/2007
Messages: 201
Changing monster part count and chance

Hi,

where do I change the amount and probability of monster parts being found on dead monsters? I've seen mods where you can get up to 4 boar-hoofs for instance.

Thanks for your help!
  20:15:07  5 October 2012
profilee-mailreply Message URLTo the Top
xRatx
Senior Resident
 

 
On forum: 06/18/2008
Messages: 1592
In the mutant ltx file, there is two sections that control it: Spawn_Inventory_Item_Section and Spawn_Inventory_Item_Probability

For example

;===========================================================================
; BOAR
;===========================================================================
[m_boar_e]:monster_base
GroupControlSection		= spawn_group
SpaceRestrictionSection = space_restrictor,zone_mosquito_bald
;$spawn					= "monsters\boars\boar_base"		 ; option for Level Editor
$npc					= on								 ; option for Level Editor
$prefetch 				= 16
visual					= monsters\mutant_boar\mutant_boar
corpse_visual			= monsters\mutant_boar\mutant_boar_dead
icon					= ui_npc_monster_mutant_boar

;------------------------------------------------------------------------
; Offline Alife
;------------------------------------------------------------------------
Scheduled				= on								 ; option for ALife Simulator
Human		     		= off								 ; option for ALife Simulator
Health					= 400								 ; option for ALife Simulator
MinSpeed				= 1.0								 ; option for ALife Simulator
MaxSpeed				= 5.0								 ; option for ALife Simulator
going_speed				= 5;4.5								 ; option for ALife Simulator
current_level_going_speed		= 1;2					; option for ALife Simulator
search_speed			= 1.5						         ; option for ALife Simulator

MaxHealthValue		    = 200								 ; range [0..200]
DynamicObjectsCount		= 32
smart_terrain_choose_interval	= 00:15:00
; Mutant Spawn Boar Leg
Spawn_Inventory_Item_Section = mutant_boar_leg
; Probablity to it spawn is 80%
Spawn_Inventory_Item_Probability = 0.8
...

  00:54:43  6 October 2012
profilee-mailreply Message URLTo the Top
SetaKat
Ex modder, Zones only ferret and will someday release a game
(Resident)

 

 
On forum: 02/20/2010
Messages: 6340
That only allows for 1 item to be spawned. OP is asking for more than 1.
I've done this in CS mods, except I had to insert a workaround due to differences in the exported engine script functions, but it'll be easier in SoC than CS.
I'll edit the changes in, once I've found them in my Stalker archives.
  01:04:03  6 October 2012
profilee-mailreply Message URLTo the Top
ddraig
Senior Resident
 

 
On forum: 06/19/2012
Messages: 158
There's a "smart monster parts" script floating around out there that lets monsters spawn more than one body part, I think it also depends on whether or not that bodypart has been shot or not (i.e. killing a bloodsucker with a headshot will destroy the tentacles) but I'm not sure.

It's fairly easy to incorporate. Just drop the script into your folder, and add a few lines to your bind_monster.script and it should work provided you have item entries for those body parts.

I can't find a standalone but I might be able to get the necessary things from a few mods I have hanging around.
  01:21:22  6 October 2012
profilee-mailreply Message URLTo the Top
Heinzfaust
Senior Resident
 

 
On forum: 04/07/2007
Messages: 201

---QUOTATION---
In the mutant ltx file, there is two sections that control it: Spawn_Inventory_Item_Section and Spawn_Inventory_Item_Probability

For example

;===========================================================================
; BOAR
;===========================================================================
[m_boar_e]:monster_base
GroupControlSection		= spawn_group
SpaceRestrictionSection = space_restrictor,zone_mosquito_bald
;$spawn					= "monsters\boars\boar_base"		 ; option for Level Editor
$npc					= on								 ; option for Level Editor
$prefetch 				= 16
visual					= monsters\mutant_boar\mutant_boar
corpse_visual			= monsters\mutant_boar\mutant_boar_dead
icon					= ui_npc_monster_mutant_boar

;------------------------------------------------------------------------
; Offline Alife
;------------------------------------------------------------------------
Scheduled				= on								 ; option for ALife Simulator
Human		     		= off								 ; option for ALife Simulator
Health					= 400								 ; option for ALife Simulator
MinSpeed				= 1.0								 ; option for ALife Simulator
MaxSpeed				= 5.0								 ; option for ALife Simulator
going_speed				= 5;4.5								 ; option for ALife Simulator
current_level_going_speed		= 1;2					; option for ALife Simulator
search_speed			= 1.5						         ; option for ALife Simulator

MaxHealthValue		    = 200								 ; range [0..200]
DynamicObjectsCount		= 32
smart_terrain_choose_interval	= 00:15:00
; Mutant Spawn Boar Leg
Spawn_Inventory_Item_Section = mutant_boar_leg
; Probablity to it spawn is 80%
Spawn_Inventory_Item_Probability = 0.8
...


---END QUOTATION---



Thanks for your help! But how do I set up the amount of the part being dropped?
  01:22:28  6 October 2012
profilee-mailreply Message URLTo the Top
angrydog
Senior Resident
 

 
On forum: 09/01/2009
Messages: 3341

---QUOTATION---
There's a "smart monster parts" script floating around out there that lets monsters spawn more than one body part, I think it also depends on whether or not that bodypart has been shot or not (i.e. killing a bloodsucker with a headshot will destroy the tentacles) but I'm not sure.

It's fairly easy to incorporate. Just drop the script into your folder, and add a few lines to your bind_monster.script and it should work provided you have item entries for those body parts.

I can't find a standalone but I might be able to get the necessary things from a few mods I have hanging around.
---END QUOTATION---



Smart Monster Parts
http://rusya.ucoz.ru/load/2-1-0-49
  03:59:24  6 October 2012
profilee-mailreply Message URLTo the Top
nashathedog
Senior Resident
 

 
On forum: 01/31/2011
Messages: 8157
You must have one of those photograohic memories or one hell of a filing system.
  04:32:28  6 October 2012
profilee-mailreply Message URLTo the Top
angrydog
Senior Resident
 

 
On forum: 09/01/2009
Messages: 3341

---QUOTATION---
You must have one of those photograohic memories or one hell of a filing system.
---END QUOTATION---



I have 'the Google'
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2020 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.