Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

during training, how to always pick up items (medikit, ammo, armo) when inventory is full? #187

Closed
pengsun opened this issue Apr 6, 2017 · 2 comments
Labels

Comments

@pengsun
Copy link

pengsun commented Apr 6, 2017

Hi,
As this video shows, the player can always pick up meditkits and ammos
https://www.youtube.com/watch?v=W0mI_c2LjJM

But I found the player cannot pick up any item when the inventory (hp or ammo) is full. Could you suggest on how to manage this? (In health_gather.wad the player periodically loses health by setting the floor's callback function, but how to do similar things for ammo? or even armor?)

@mwydmuch
Copy link
Member

mwydmuch commented Apr 6, 2017

Hello @pengsun,
CVARs implemented in ZDoom engine are very helpful in quickly modifying some aspects of the game:
https://zdoom.org/wiki/CVARs:Configuration

In this case game.add_game_args("+sv_unlimited_pickup 1") should do the trick.

@pengsun
Copy link
Author

pengsun commented Apr 7, 2017

Wow, thanks for pointing out this! Will try it out!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants