http://www.realityfactory.info/forum/vi ... f=8&t=3830
There Dante said:
When I was making the game then, I didn't wanted to be so reallistic, but now I really need to make something like this.you could make an Ultra-realistic weapon system using the default one... which means that the player can only have 2 or 3 weapons in the same time. It would be, for example: a slot for rifles, another one for heavy weapons and explosives, and another one for guns... dont be affraid of putting various weapons in the same slot... the player will just have to throw the weapon before taking another!
NOW, I don't want anybody to write a script for me, I just need help arround what should be scripted and what should the scripts do.
Now, here's what I want and here's what I think it can be done:
I want the player to have 3 slots, and in theese three slots to be able to put every weapon, so that way you can put 3 absolutely the same weapons (which is not a good Idea, cuz when the ammo is out :X , but let's leave this to the person who plays the game later). I don't want the player to be able to throw the weapons wheneverh he likes, but only when there's a weapon to change the current weapon with. So let's say there's a weapon on the ground, you walk over it, and a flipbook image is displayed (or a HUD element, dunno which is better), whith the picture of the weapon that is on the ground, and when you press TAB, the weapon on the ground to become your current weapon in the slot, and the weapon, you were just holding to become a pickable.
Now what I think it can be done, somebody correct me if I'm wrong, please.
FIrstly for the 3 slots, where you can put any weapon - I have no idea of how to do that, and probably that's the first thing to start with :X
Secondly for the weapon pickup - well, I can make the weapon on the ground not an attribute, but a pawn, it will detect if the player is near it and then check if the TAB button is pressed (that reminds me of the gen1car.s), but then what should this pawn do? I think it should add the new weapon attribute and take the other weapon attribute from the player.
So I think this will need maybe two scripts? One for the weapon pickups that will be pawns and one for the weapon slots where you can put any weapon in slot 1, any weapon in slot 2 and any weapon in slot 3 (but only one weapon in a slot).
I just need to know theese things, and maybe a hint with what to start (scripting) and I'lltry to do something myself, then I'll ask for help