Make a new Item Flag?

正在查看此主题的用户

Toasticuss

Sergeant
Hey guys, I've noticed in a few mods that there are custom flags that prevent unnecessary items from coming off with armor. Say you make a mask to cover a players face but you want to preserve the players hair, there isnt a flag to keep the hair on so a flag was made to keep the hair on with the mask on.

I'd like to do that and more with custom flags, I made some hand armor but I don't want to make a mesh for it because I want to just see the hands like normal and have hand armor.

Can someone please explain this?

I looked in the headers_items.py file and I can see all the flags and capabilities but they are all hex codes. Is there a way to make a hex code flag, or do I have no idea what I'm talking about.....
 
You cannot create a new flag because all the flags are hardcoded into the engine. The hexcode is just for referencing a specific flag. About these other mods, either they have a newer version of the module system that has that flag or they have created a work-around that accomplishes the task
 
There is a flag to keep hair (or maybe keeping hair is the default and removing it is the flag). There's one for beards too.
 
MadocComadrin 说:
There is a flag to keep hair (or maybe keeping hair is the default and removing it is the flag). There's one for beards too.

Where can I find such flags? The item_headers file doesnt have anything like that.
 
Direct form header_items
插入代码块:
#item flags
itp_type_horse           = 0x0000000000000001
itp_type_one_handed_wpn  = 0x0000000000000002
itp_type_two_handed_wpn  = 0x0000000000000003
itp_type_polearm         = 0x0000000000000004
itp_type_arrows          = 0x0000000000000005
itp_type_bolts           = 0x0000000000000006
itp_type_shield          = 0x0000000000000007
itp_type_bow             = 0x0000000000000008
itp_type_crossbow        = 0x0000000000000009
itp_type_thrown          = 0x000000000000000a
itp_type_goods           = 0x000000000000000b
itp_type_head_armor      = 0x000000000000000c
itp_type_body_armor      = 0x000000000000000d
itp_type_foot_armor      = 0x000000000000000e
itp_type_hand_armor      = 0x000000000000000f
itp_type_pistol          = 0x0000000000000010
itp_type_musket          = 0x0000000000000011
itp_type_bullets         = 0x0000000000000012
itp_type_animal          = 0x0000000000000013
itp_type_book            = 0x0000000000000014

itp_force_attach_left_hand      = 0x0000000000000100
itp_force_attach_right_hand     = 0x0000000000000200
itp_force_attach_left_forearm   = 0x0000000000000300
itp_attach_armature             = 0x0000000000000f00
itp_attachment_mask             = 0x0000000000000f00


itp_unique               = 0x0000000000001000
itp_always_loot          = 0x0000000000002000
##itp_melee                = 0x000002000
itp_no_parry             = 0x0000000000004000
##itp_spear                = 0x000008000 #obsolete
itp_default_ammo         = 0x0000000000008000
itp_merchandise          = 0x0000000000010000
itp_wooden_attack        = 0x0000000000020000
itp_wooden_parry         = 0x0000000000040000
itp_food                 = 0x0000000000080000

itp_cant_reload_on_horseback = 0x0000000000100000
itp_two_handed               = 0x0000000000200000
itp_primary                  = 0x0000000000400000
itp_secondary                = 0x0000000000800000
itp_covers_legs              = 0x0000000001000000
[b]itp_doesnt_cover_hair        = 0x0000000001000000[/b]
itp_can_penetrate_shield     = 0x0000000001000000
itp_consumable               = 0x0000000002000000
itp_bonus_against_shield     = 0x0000000004000000
itp_penalty_with_shield      = 0x0000000008000000
itp_cant_use_on_horseback    = 0x0000000010000000
itp_civilian                 = 0x0000000020000000
itp_next_item_as_melee       = 0x0000000020000000
itp_fit_to_head              = 0x0000000040000000
itp_offset_lance             = 0x0000000040000000
itp_covers_head              = 0x0000000080000000
itp_couchable                = 0x0000000080000000
itp_crush_through            = 0x0000000100000000
#itp_knock_back               = 0x0000000200000000 being used?
itp_remove_item_on_use       = 0x0000000400000000
itp_unbalanced               = 0x0000000800000000

[b]itp_covers_beard             = 0x0000001000000000    #remove beard mesh[/b]
itp_no_pick_up_from_ground   = 0x0000002000000000
itp_can_knock_down           = 0x0000004000000000
itp_extra_penetration        = 0x0000100000000000
itp_has_bayonet              = 0x0000200000000000
itp_cant_reload_while_moving = 0x0000400000000000
itp_ignore_gravity           = 0x0000800000000000
itp_ignore_friction          = 0x0001000000000000
 
MadocComadrin 说:
Direct form header_items
插入代码块:
#item flags

Oh wow thanks don't know how I missed that, so theres no way to make it not cover hands?

I just want to make some hand armor that shows the same hands as the player without making a new mesh for it.
 
后退
顶部 底部