<aside> ⚡ script "core_chargecolor" (int weap, int teamweap)

</aside>

Usage


This script is essentially an alias for:

ACS_NamedExecuteWithResult("core_weaponcolor", weap, CLRF_SILENT, teamweap);

Parameters

<aside> 💡 Note: CLR_PREVCOLOR is a special constant which can be used for this parameter to not change the user’s color. Useful if you only need a weapon swap noise!

</aside>

<aside> 💡 Note: This parameter is what facilitates team charge color animations, so check out [Team Colors](<https://mm8bdm.notion.site/Team-Colors-679c2e935457413dba70d2375689b089>) for more info.

</aside>

Example


Below is a modified excerpt of Homing Sniper’s charge animation

Charge2AnimStart:
	TNT1 A 0 A_GunFlash("ChargeLevel2")
Charge2Anim.A:
	HSNI I 1 ACS_NamedExecuteWithResult("core_chargecolor",CLR_HOMINGCHRG2,TCLR_CHARGE2)
	HSNI C 0 A_Refire("Charge2Anim.B")
	Goto Fire1
Charge2Anim.B:
	HSNI J 1 ACS_NamedExecuteWithResult("core_chargecolor",CLR_HOMINGCHRG3,TCLR_CHARGE3)
	HSNI C 0 A_Refire("Charge2Anim.C")
	Goto Fire1
Charge2Anim.C:
	HSNI C 1 ACS_NamedExecuteWithResult("core_chargecolor",CLR_HOMINGSNIPER,TCLR_DEFAULT)
	HSNI C 0 A_Refire("Charge2Anim.A")
	Goto Fire1

See Also


core_weaponcolor