View Single Post
  #1  
Old 06-13-2007, 06:01 PM
PrinceOfKenshin PrinceOfKenshin is offline
That guy with a beard
PrinceOfKenshin's Avatar
Join Date: May 2004
Location: Ontario, Canada
Posts: 819
PrinceOfKenshin has a spectacular aura aboutPrinceOfKenshin has a spectacular aura about
NPCS, Classes Weapons.

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"falsefalse0.30.11.5, -.10100.40.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?
__________________


Quote:
Game Master (Server): Greetings PrinceOfKenshin, there are new posts on the forums that demand your urgent attention! God speed, the fate of the world is in your hands. If you fail, middle earth will forever be in the darkness and your children will be enslaved by McKain.
Reply With Quote