The "How do I..." Thread
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
-
- Posts: 28
- Joined: Sun Dec 30, 2012 10:58 pm
Re: The "How do I..." Thread
Heh, appreciate it. i feel a little stupid now to have completely forgotten about 3D Floors.
- zrrion the insect
- Posts: 2432
- Joined: Thu Jun 25, 2009 1:58 pm
- Location: Time Station 1: Moon of Glendale
Re: The "How do I..." Thread
Does this mean that any actor with this flag is automatically a monster? If not, what would setting this flag on a non-monster actually do?The wiki wrote:FRIENDLY
This monster doesn't target the player.
Re: The "How do I..." Thread
It will only target non-friendly monsters, but not automatically. It still need to be awoken by the player (or other means).
Re: The "How do I..." Thread
I been wanting to ask involving sprites, how would you make a sprite 16:9 compatible? As I've been trying to make 2 weapons a Marathon-like weapon and the Duke43 GL but sadly they are only for 4:3 so they get cut off
Re: The "How do I..." Thread
You can use this flag with any actor, not necessarily with monsters. Any actor with this flag will get a visible [edit]HOSTILE MONSTER[/edit] as target when it calls an A_Look, for example.zrrion the insect wrote:Does this mean that any actor with this flag is automatically a monster? If not, what would setting this flag on a non-monster actually do?The wiki wrote:FRIENDLY
This monster doesn't target the player.
Last edited by Ravick on Sat Jun 21, 2014 4:48 pm, edited 1 time in total.
Re: The "How do I..." Thread
No, the flag only makes something friendly. It's just that it's not really useful to put it on something that isn't a monster: a friendly medikit will not behave in any way differently from a normal medikit.zrrion the insect wrote:Does this mean that any actor with this flag is automatically a monster? If not, what would setting this flag on a non-monster actually do?The wiki wrote:FRIENDLY
This monster doesn't target the player.
Re: The "How do I..." Thread
Does A_ChangeFlag remove flags as well?
I kinda wanted to utilize the wound state to give bosses +Missileevenmore at half-health, but I don't want them to have both +Missile and +Missileeven
I kinda wanted to utilize the wound state to give bosses +Missileevenmore at half-health, but I don't want them to have both +Missile and +Missileeven
-
- Posts: 5046
- Joined: Sun Nov 14, 2010 12:59 am
Re: The "How do I..." Thread
Yes. For example, if you do this: A_ChangeFlag("<flag_name>", TRUE), you set the flag. And if you do this: A_ChangeFlag("<flag_name>", FALSE), you clear/remove the flag.
Re: The "How do I..." Thread
Oh ok, I didn't know it was a true or false sort of thing
All the wiki says is that it's a "value" so I got confused http://zdoom.org/wiki/A_ChangeFlag
All the wiki says is that it's a "value" so I got confused http://zdoom.org/wiki/A_ChangeFlag
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: The "How do I..." Thread
No, but it will feel friendlier. It's all in the feel, man.Gez wrote:a friendly medikit will not behave in any way differently from a normal medikit.
Re: The "How do I..." Thread
It clearly says "bool value". What is a boolean if not a true or false value?Toberone wrote:All the wiki says is that it's a "value" so I got confused http://zdoom.org/wiki/A_ChangeFlag

Re: The "How do I..." Thread
Well, I guess I learned something new today.
- zrrion the insect
- Posts: 2432
- Joined: Thu Jun 25, 2009 1:58 pm
- Location: Time Station 1: Moon of Glendale
Re: The "How do I..." Thread
This is both humorous and informative, thanks for the info.NeuralStunner wrote:No, but it will feel friendlier. It's all in the feel, man.Gez wrote:a friendly medikit will not behave in any way differently from a normal medikit.
Re: The "How do I..." Thread
Hey, I'm trying to get a ReFire state going for a CustomInventory item to check if the player's holding down the itemuse button.
Unfortunately, GetPlayerInput doesn't have an ItemUse button.
Can I force-map BT_User1 to the itemuse key across players, or am I stuck here?
Thanks!
Unfortunately, GetPlayerInput doesn't have an ItemUse button.
Can I force-map BT_User1 to the itemuse key across players, or am I stuck here?
Thanks!
Re: The "How do I..." Thread
You're stuck, because "itemuse" (invuse) isn't player input to start with. Inventory usage (and weapon selection by extension) processes the name of the inventory you want to use. This is regardless if it's actually the "selected" inventory or not (see the use ccmd).
The invuse key is nothing more then a console command that processes whatever happens to be selected at the time.
The invuse key is nothing more then a console command that processes whatever happens to be selected at the time.