FileFront Forums

FileFront Forums (http://forums.filefront.com/)
-   S.T.A.L.K.E.R. CS Modding, Mapping and Editing (http://forums.filefront.com/s-t-l-k-e-r-cs-modding-mapping-editing-1532/)
-   -   Adding new items? (http://forums.filefront.com/s-t-l-k-e-r-cs-modding-mapping-editing/381257-adding-new-items.html)

jdude October 12th, 2008 01:04 PM

Adding new items?
 
Hello everyone

I want to make a mini-mod which adds a ton of basic items, maybe even ammo. Unfortunately I'm unfamiliar with how Stalker works. I tried looking at the 'basic modding with playable examples' thread which makes everything on the property aspect of a mod clear, however it doesn't state how to add an item.

Basically this is what I want to do first:
I want to create a second bandage that heals your wounds completely. First what I did was unpacked the entire game.

Now I have the file: gamedata/configs/misc/items.ltx

I open it with notepad and I see this near the bottom:

Code:

[bandage]:identity_immunities
GroupControlSection    = spawn_group
discovery_dependency =
$spawn                = "food and drugs\bandage"
$prefetch            = 8
class                = II_BANDG
cform                = skeleton
visual                = dynamics\devices\dev_bandage\dev_bandage.ogf
description            = st_bandage_descr

inv_name            = st_bandage
inv_name_short        = st_bandage
inv_weight            = 0.05    ;0.2
cost                = 200

inv_grid_width        = 1
inv_grid_height        = 1
inv_grid_x            = 3
inv_grid_y            = 18

; eatable item
eat_health =    0.0
eat_satiety =    0
eat_power =    0.0
eat_radiation = 0.0
wounds_heal_perc = 0.5
eat_portions_num = 1    ;100

; food item
animation_slot        = 4

;hud item
hud = wpn_vodka_hud

Now to make a new bandage, do I just copy and paste the entire thing?

After I finish the above, I want to make the bandage have a green skin, as well as make the inventory icon green. Where would I find the files to do this, and where is the description file located?

jdude October 12th, 2008 02:45 PM

Re: Adding new items?
 
Okay, so this is what I understand so far:

In-game physical model:
Found in \meshes\dynamics\devices\dev_bandage\dev_bandage.o gf

In-game physical skin:
There's two things:
item_medkit.dds
and
item_medkit.thm
I don't know what item_medkit.thm is, but the item_medkit.dds has the skin on the lower right portion.
Both these are found in \textures\item

The definitions/properties for the bandages are found here:
configs/misc/items.ltx

The description and name for the items in-game are found here:

\configs\text\eng\st_items_equipment.xml

In reference to the above post, the bolded and underlined will be modified in accordance to the one of the four parts described above:

Code:

[bandage]:identity_immunities
GroupControlSection    = spawn_group
discovery_dependency =
$spawn                = "food and drugs\bandage"
$prefetch            = 8
class                = II_BANDG
cform                = skeleton
visual                = dynamics\devices\dev_bandage\dev_bandage.ogf
description            = st_bandage_descr

inv_name            = st_bandage
inv_name_short        = st_bandage
inv_weight            = 0.05    ;0.2
cost                = 200

inv_grid_width        = 1
inv_grid_height        = 1
inv_grid_x            = 3
inv_grid_y            = 18

; eatable item
eat_health =    0.0
eat_satiety =    0
eat_power =    0.0
eat_radiation = 0.0
wounds_heal_perc = 0.5
eat_portions_num = 1    ;100

; food item
animation_slot        = 4

;hud item
hud = wpn_vodka_hud

However I don't know what $spawn is in reference to, but I'm fairly certain it will have to be different. Perhaps it's just anything you want it to be.

I also don't know if there's anyway to get the .ogf file to target a different skin without having to use an actual model editing tool to go in there and change the skin.

Lastly, how does one change the icon image? Where is it located?


All times are GMT -7.

Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.