Enums are not supported by DoomScript
One Minute Game Review by The Happy Friar: https://ugetube.com/@OneMinteGameReviews
Also on Rumble: https://rumble.com/c/c-1115371
idTech 4 (aka Doom 3 tech) Discord Server! https://discord.gg/9wtCGHa
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu/*
=====================
weapon_base::UpdateSkin
Required by game code for when the skin needs to change (for example, when the player has a power up). Implemented in subclasses.
Code is called is only guaranteed to execute for one frame, so any code should either set the weapon state or start a new thread.
=====================
*/
void weapon_base::UpdateSkin() {
if ( isInvisible() ) {
setSkin( getKey( "skin_invisible" ) );
} else {
setSkin( "" );
}
}
void weapon_shotgun::UpdateSkin() {
if ( isInvisible() ) {
setSkin( getKey( "skin_invisible" ) );
} else {
setSkin( getKey("skin") );
}
}