Well i know this sounds stupid. But i never understood what goes where.
I know in Classes instead of having the script in a level you make a class and just call the class from the level.
And for weapons i know you add weapons to a player.
and NPCs are databases.
I also know that in NPCs you can store items. Such as a gun. (on atrius)
PHP Code:
AK47=AK47,gun,at_ak47-icon1.gif,automatic,clipinfo,1,AK47
and in the classes you have all the information for the gun.
PHP Code:
this.gun.AK47 = {"AK47", "at_ak47-", "at-newbullet", "Rifle Ammo", false, false, 0.3, 0.1, 1.5, -.10, 1, 0, 0.4, 0.4, {{0,0},{-1.8,-.6},{0,0},{1.8,-.6}}, {{{.5,0},{-.5,0}}, {{-.7,-1.35},{-.5,-1}}, {{-.5,0},{.5,0}}, {{.7,-1.35}, {.7,-.7}}}};
And in the weapons you have the main script for the gun that makes it fire, reload and all that good stuff.
But i don't understand How i can add other things like a medkit (just an example.)
I don't know if i should put it in all three (npc,class,weapons) or just weapons and npc. Can someone explain this to me?