I am currently planning a game which features multiple playable characters. I understand that I should extend the existing character class with variables that will be common among my characters(health, armor etc) to then extend for each individual character, but would I need to create ones for things like speed which are already in the basic class? On top of this, each character will have it’s own individual abilities but basic function would be the same (walk/run, aim, shoot, switch weapon) so would i put the script for these actions in the class that each character would inherit?
I know that for weapons I will want to create a class extended from actor with variables for things like weapon spread, damage, range, fire rate etc. but how would be the best way to put them onto my characters? Would it be reasonable to assume I create a variable in the character class for the primary and secondary weapons and can link the weapons to the class?
Any further tips or advice about this kind of thing would be greatly appreciated