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

Added auto-complete to "give" ConCommand #64

Closed
wants to merge 2 commits into from

Conversation

saul
Copy link

@saul saul commented Jul 2, 2013

Auto-completion has been added to the give ConCommand as it exists in L4D2. Classnames that begin with item_ and weapon_ are added to the autocomplete. The classname prefixes are customisable via the s_pEntityPrefixes array in client.cpp.

To get all entity factory class names, the actual factory dictionary has been exposed on the IEntityFactoryDictionary interface (added GetFactoryDictionary method, hence the util.cpp/util.h changes)

In addition, un-necessary sv_cheats->GetBool() == true checks have been removed from the following ConCommands due to them having the FCVAR_CHEAT flag:

  • fov (added FCVAR_CHEAT flag)
  • give (added FCVAR_CHEAT flag)
  • noclip
  • god
  • setpos
  • setang
  • setpos_exact
  • setang_exact
  • notarget
  • hurtme

@JoeLudwig
Copy link
Contributor

Instead of taking this pull request we're going to encourage people to pull directly from your repo.

@JoeLudwig JoeLudwig closed this Jul 30, 2013
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.

None yet

2 participants