DoomRL > Modding

Changing the ammo system?

<< < (10/10)

yaflhdztioxo:
It sounds like you're talking about prototype properties vs published object properties.  They sometimes line up but they are not always shared.

Name for instance.  You can specify a name when declaring an item prototype and you can change an individual object's name by modifying the object's published 'name' property.  There's a 'name' property in both sets.  Color (ascii color) can also be edited this way.

sprite, psprite, glow, and coscolor are prototype-only properties.  You CANNOT modify these on a single object.  This is because sprites are not generated on the fly--they are assembled based on your prototypes.  There is a published 'picture' property which I assume refers to the actual sprite being used but I have never tampered with it so I cannot offer any advice.

Autoquark:
Thanks. According to the wiki, "picture" is just the object property of "ascii", and if I print it using ui.msg, I get a number that depends on the ascii property, so this seems correct. Is there another object property that holds the assembled sprite? I was thinking I might be able to register items with all the sprite and glow combinations I might need (I'm only planning on using pure red, green and blue glows) and then copy the assembled sprite property from an object of that item to the item whose sprite I want to change.

EDIT: So is there no way to change an item's description after it has been created? You didn't mention it, but the wiki says that the object property "desc" is the name of the object rather than the description, and doesn't list an object property for the description.

Autoquark:
According to the wiki, one sniper weapon pack causes a weapon to have no range penalties to accuracy, and a second one causes it not to suffer any penalty against hitting a target you can't see. Are there some new item flags that set this behaviour? The wiki states that IF_AUTOHIT is used by sniper packs, but I assume that's for older versions where a sniper pack just caused a weapon to always hit.

Uranium:

--- Quote from: Autoquark on May 19, 2013, 09:40 ---According to the wiki, one sniper weapon pack causes a weapon to have no range penalties to accuracy, and a second one causes it not to suffer any penalty against hitting a target you can't see. Are there some new item flags that set this behaviour? The wiki states that IF_AUTOHIT is used by sniper packs, but I assume that's for older versions where a sniper pack just caused a weapon to always hit.

--- End quote ---

Yep, it was split into IF_FARHIT and IF_UNSEENHIT for the first and second mods respectively.

Navigation

[0] Message Index

[*] Previous page

Go to full version