Code: Select all
Class NewPlayer : DoomPlayer
{
Default
{
Player.StartItem "NewPistol";
Player.StartItem "Clip", 50;
Player.WeaponSlot 2, "NewPistol";
}
}
Class NewPistol : Pistol
{
int testing;
States
{
Select:
TNT1 A 0 { invoker.testing = 9; }
Goto Super::Select;
Fire:
TNT1 A 0 A_ChangeVelocity(0,0, testing);
// TNT1 A 0 A_ChangeVelocity(0,0, invoker.testing);
SHTG A 35 A_LogInt(testing);
// SHTG A 35 A_LogInt(invoker.testing);
Goto Ready;
}
}
If you try to use the two lines currently commented out, it should give an error message on startup: Unknown identifier 'invoker'.