Search found 3 matches
- Thu Nov 29, 2018 4:51 am
- Forum: Plugin Development Support
- Topic: Strange behavior with my implementation of player.set_active_weapon()
- Replies: 6
- Views: 8141
Re: Strange behavior with my implementation of player.set_active_weapon()
Your code could be something like the following: # ../addons/source-python/weapons/weapons.py # ============================================================================ # >> IMPORTS # ============================================================================ # Source.Python Imports # Commands...
- Wed Nov 28, 2018 11:07 pm
- Forum: Plugin Development Support
- Topic: Strange behavior with my implementation of player.set_active_weapon()
- Replies: 6
- Views: 8141
Re: Strange behavior with my implementation of player.set_active_weapon()
Last question for now: I mentioned earlier that I made knives droppable. There is a small issue with that as well. I'm using this code snippet which I believe I found somewhere on the forums. I may or may not have modified it, I cannot remember. Anyhow: @ClientCommand('drop') def dr...
- Wed Nov 28, 2018 10:30 pm
- Forum: Plugin Development Support
- Topic: Strange behavior with my implementation of player.set_active_weapon()
- Replies: 6
- Views: 8141
Strange behavior with my implementation of player.set_active_weapon()
First off, I'm very new to this API and programming in general (like, only started programming a few days ago >w<), so sorry if I'm making any super basic mistakes. Please correct them. I've created a plugin which is meant to give a player a weapon (stripping their current weapon in that slot, if ap...