Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

replace_items feature #55

Merged
merged 3 commits into from
Dec 13, 2016
Merged

replace_items feature #55

merged 3 commits into from
Dec 13, 2016

Conversation

em92
Copy link
Collaborator

@em92 em92 commented Dec 13, 2016

Added 2 methods:

  • minqlx.replace_items(entity, item)
  • minqlx.dev_print_items prints all items with entitiy ids in the map to game console
    If output buffer is not enough, the other part is printed on server console. It is made like this 'cos
    • too many SV_SendServerCommand(NULL, "print ..) calls on one frame will kick player(s)
    • calling SV_SendServerCommand(NULL, "print "%s"", str) with very long str (>1024) just won't be printed to console for some reason.

minqlx.dev_print_items will be used if plugin developer wants to get entity id of certian item in the map and use it, for example, in minqlx.replace_items

@em92
Copy link
Collaborator Author

em92 commented Dec 13, 2016

Methods above have been tested.
#54 - also has been tested. Works fine so far.

@MinoMino
Copy link
Owner

Great stuff as always. Thanks. I'll push this stuff to master and make a new release soon then.

@MinoMino MinoMino merged commit de8cbb2 into MinoMino:develop Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants