Monsters picking up items?

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Bootleg Guy
 
Posts: 25
Joined: Mon Jan 11, 2016 11:18 pm
Location: Chile
Contact:

Monsters picking up items?

#1

Post by Bootleg Guy » Sat Apr 09, 2016 2:00 am

Is there any way to make monsters able to pick up items in zandronum? I know they can pick up items with the +PICKUP flag, but it only seems to work in zdoom.

User avatar
SwordGrunt
Forum Regular
Posts: 377
Joined: Thu Jun 07, 2012 8:43 pm

Re: Monsters picking up items?

#2

Post by SwordGrunt » Sat Apr 09, 2016 2:39 am

There is a way by using invisible monsters as replacement for items, but I don't think you'd want to go that far. If +PICKUP doesn't work on Zandronum that should be reported as a bug.

User avatar
ZZYZX
Posts a lot
Posts: 742
Joined: Thu Jun 07, 2012 5:56 pm
Location: Ukraine
Clan: A3
Clan Tag: [A3]

Re: Monsters picking up items?

#3

Post by ZZYZX » Sat Apr 09, 2016 3:04 pm

You can simulate item pickup by querying nearby actors with A_RadiusGive. But then you'll need to manually handle each item class.
I guess the next question will be "how to activate switches programmatically" lol
and the answer is it's impossible
so no decorate bots sorry

User avatar
Bootleg Guy
 
Posts: 25
Joined: Mon Jan 11, 2016 11:18 pm
Location: Chile
Contact:

Re: Monsters picking up items?

#4

Post by Bootleg Guy » Sat Apr 09, 2016 4:29 pm

ZZYZX wrote:You can simulate item pickup by querying nearby actors with A_RadiusGive. But then you'll need to manually handle each item class.
I guess the next question will be "how to activate switches programmatically" lol
and the answer is it's impossible
so no decorate bots sorry
I guess that could work, and I really dont plan to make the bots able to use switches at all, I just want to have something that can act like a player, sorta.

User avatar
ZZYZX
Posts a lot
Posts: 742
Joined: Thu Jun 07, 2012 5:56 pm
Location: Ukraine
Clan: A3
Clan Tag: [A3]

Re: Monsters picking up items?

#5

Post by ZZYZX » Sat Apr 09, 2016 6:45 pm

Well you see for bots to act like a player they need to use elevators and doors, and these are switches ;P

User avatar
Empyre
Zandrone
Posts: 1316
Joined: Sun Jul 08, 2012 6:41 am
Location: Garland, TX, USA

Re: Monsters picking up items?

#6

Post by Empyre » Sat Apr 09, 2016 9:23 pm

A_RadiusGive doesn't work in Zand 2. I know because I tried to use it myself.
"For the world is hollow, and I have touched the sky."

Post Reply