Skip to content

Attribute Submodule

Yassine Sen edited this page Sep 30, 2022 · 1 revision

ConfigEvent_AddAttribPlayer

Structure

"<enum>"
{
	// Apply upd
	"procedure"  "ConfigEvent_AddAttribPlayer"

	// depend on 	'event_type', usually 'player' for calling player, check 'vsh2hooks*.sp'
	// 'target' will assume the 'player' is an entity index
	// while 'vsh2target' will assume the 'player' is a client userid
	"vsh2target"	"player"
	// "target"	"player"

	"attributes"
	{
		"<enum>"
		{
			"name"		"..."
			"value"		"2.0"
			"duration"	"2.0"
		}
	}
}

Arguments

Key Type Description
vsh2target/target String Target from string
attributes.*.name String Attribute's name
attributes.*.value Float Attribute's value
attributes.*.duration Float Attribute's duration to set

ConfigEvent_SetAttribWep

Structure

"<enum>"
{
	// Apply upd
	"procedure"  "ConfigEvent_SetAttribWep"

	// depend on 	'event_type', usually 'player' for calling player, check 'vsh2hooks*.sp'
	// 'target' will assume the 'player' is an entity index
	// while 'vsh2target' will assume the 'player' is a client userid
	"vsh2target"	"player"
	// "target"	"player"

	"attributes"
	{
		"<enum>"
		{
			"index"		"..."
			"value"		"2.0"
			"duration"	"2.0"
		}
	}
}

Arguments

Key Type Description
vsh2target/target String Target from string
attributes.*.index Integer Attribute's index
attributes.*.value String/Float Attribute's value or reference in ConfigEvent
attributes.*.duration Float Attribute's duration to set

ConfigEvent_RemoveAttribWep

Structure

"<enum>"
{
	// Apply upd
	"procedure"  "ConfigEvent_RemoveAttribWep"

	// depend on 	'event_type', usually 'player' for calling player, check 'vsh2hooks*.sp'
	// 'target' will assume the 'player' is an entity index
	// while 'vsh2target' will assume the 'player' is a client userid
	"vsh2target"	"player"
	// "target"	"player"

	"attributes"
	{
		"<enum>"
		{
			"index"		"..."
			"slot"		"2.0"
		}
	}
}

Arguments

Key Type Description
vsh2target/target String Target from string
attributes.*.index Integer Attribute's index
attributes.*.slot Integer Weapon's slot index