DoomRL > Modding

Changing the ammo system?

<< < (9/10) > >>

Autoquark:

--- Quote from: SPTX on April 13, 2013, 03:59 ---It's the IF_SHOTGUN flag indeed, the rocket launcher has it for that matter.

--- End quote ---

According to the wiki, that flag makes it expect a shotgun missile, and if I try setting IF_SHOTGUN on one of the explosive weapons in my mod, it crashes when it tries to register it.

EDIT: What are the property names of glow and sprite?

SPTX:
Wow sorry, I misread and talked out of my ass to boot.
Try making your weapon group either weapon-shotgun or weapon-explosive.

Autoquark:
I've been trying to alter item.desc in a hook, but if I do


--- Code: ---ui.msg(item.desc)
--- End code ---

it prints the item name with the damage and ammo appended instead of the description.

Equality:

--- Quote ---What are the property names of glow and sprite?
--- End quote ---
sprite - on ground
psprite - on soldier, equipped
color - in inventory and ascii
coscolor - color for sprites
glow - glow

Autoquark:

--- Quote from: Equality on April 13, 2013, 06:10 ---sprite - on ground
psprite - on soldier, equipped
color - in inventory and ascii
coscolor - color for sprites
glow - glow

--- End quote ---

I meant how do I refer to them in hooks, rather than what they mean - the wiki claims that the property name of the sprite is the same as the prototype key, but I've been getting errors when I try to reference it, and it doesn't mention the property name for glow at all.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version