Back to the Vavoom Forum Archives


Forum

[Not a Bug][1.33]DECORATE embedded in VavoomC won't accept a

Mon, 28 Mar 2011 04:30:35

b0rsuk

DECORATE functions embedded in VavoomC won't accept arguments. Example below is from progs/linespec/FrostMissile.vc:
states
{
Spawn:
    SHRD A 0 A_ExtraDamage
    SHRD A 2 Bright A_ScaleVelocity(0.70)
   
Mon, 28 Mar 2011 05:33:16

Crimson Wizard

I think they should be wrapped in { }. I have following lines in our KMOD4 project (in vc source file):
BISB P 1 { KRPGLevelInfo(Level).A_LocalQuakeFree(2, 100, 4, 16, Origin); }
DEMN G 6
	{
		A_Custo
Tue, 29 Mar 2011 15:18:58

Firebrand

Using CW's method, you can add a small "block" of method calls, i.e. call more than one method in a single state.

Back to the Vavoom Forum Archives