[Include] multi-weapon2.inc - Multi-weapon switch system with a lot of features
#9

Quote:
Originally Posted by Pottus
Посмотреть сообщение
Why not let the player decide which key they want? Allow the config to accept multiple possibilities.
I could do that, but it isn't a filterscript. It's supposed to be integrated into a gamemode and the function SwitchPlayerWeapon can be used throughout the code. The current manual and automatic weapon switch options are just for people who like it as-is to use it as a plug n' play include, an advanced scripter can easily remove the options I created and use the function in their own gamemode with their own rules and conditions to switch weapon.

I created automatic switch to show how it could be done without much code and in a pretty simple way.

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
Configurable data should be allowed to change from the text file (*.ini configuration file) located in scriptfiles folder. Not from the code itself. There may still be people that don't know how to compile/edit such a things.
Again, this is an include. The function is provided for the scripters to integrate it in their modes and they are supposed to make all of that, I just created the function and two examples of how it can be used.

You know that you need to compile your gamemode to use this include.

Quote:
Originally Posted by Marshas
Посмотреть сообщение
Well done! I tried to do something similar to this, few weeks ago, but unfortunately, my patience gone
Quote:
Originally Posted by justinnater
Посмотреть сообщение
Great job!
Quote:
Originally Posted by Bolex_
Посмотреть сообщение
Good job freund.
Quote:
Originally Posted by denNorske
Посмотреть сообщение
Excellent include.

5 star rating because;

Well documented code (with comments)
Very well sructured code (identation, naming, general layout)
Very well functioning code (No bugs found so far)
Nice idea that has been realised and released publicly.
... and you're a cool guy.

I hope you keep up your good efforts and that you consider making more releases in the future.
Thanks for your comments
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)