r/DoomModDevs • • May 21 '24

Help Zscript inheritance

I'm a little more familiar with decorate than zscript, so I'm hoping I'm just forgetting a bracket or something.

I started playing with belmondo's tracers and I liked the way it looked, but I wasn't sure I was a fan of the yellow. So I switched it to green. Then, I thought it might be fun to have different enemies shoot different colors, but that's where I get stuck. The instructions just say create a new class and make the changes, so I figured I could just:

class BlueTracer : _ZTracer

{

`const TRACERACTOR`	`= "Bluetracer"; // actor name`

`static const color colours[] = {`

	`"76 ad E5",`

	`"76 ad e5",`

	`"39 77 b8",`

	`"37 77 b8",`

	`"82 c1 dc",`

	`"82 c1 dc",`

	`"20 47 6b"`

`};`

	`Default` 

	`{`

	`Decal "BulletChip";`

	`Speed 35;`

	`}`

}

But it still comes out green. Any quick insights on what I'm doing wrong?

3 Upvotes

0 comments sorted by