Raised This Month: $ Target: $400
 0% 

NS masks, structures and impulses.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 07-13-2006 , 11:01   Re: NS masks, structures and impulses.
Reply With Quote #2

Ok np:
Player Mask Constants:
The mask list can be found in ns_const.inc

In classic the mask only work if there enought chamber,if you have MASK_CARAPACE and 1 chamber ,you have 16 armor,if you have 3 chamber you have 30 armor.if you have 0 chamber you lose the mask.
The same as the other masks.
the best is you test if he has really the mask:
Code:
client_print(id,print_chat,"has mask:%d",ns_get_mask(id,MASK_CARAPACE))

Class Constants:
the classes also stand in ns_const.inc,the fist class CLASS_UNKNOWN has classid 0,CLASS_SKULK has classid 1,...

You can read the clasnumber with
Code:
ns_get_class(id)
You can hook if someone change the class with
Code:
client_changeclass(id,newclass,oldclass)

Weapon Constants:
You know ns_const.inc,same as the class,WEAPON_NONE = 0,WEAPON_CLAWS = 1,...

To give someone a weapon use
Code:
give_item(id,"weaponname")
To test if someone have this weapon use
Code:
ns_has_weapon(id,weapon)

Hive Trait Constants:
This mean which Hive have which chamber
To find it out
Code:
new ent = find_ent(-1,"team_hive") ns_get_hive_trait(ent)

Quote:
Structures and Impulse:
how can i use the command client_build( index, structure, type, impulse )
how do i get structure types to put in the structure argument and what is impulse?
client_built ( index, structure, type, impulse )
index = id of player
If type is 1, it's a Marine structure. If type is 2, it's an Alien structure.
impulse = the impulse number,every building,command,.. have a number:
Code:
Alien resourcower = 90, Alien Offenschamber = 91, Alien Defenschember = 92, Alien Sensorychamber= 93, Alien movementchamber = 94, Alien hive = 95, ...
this numbre can be found in ns_sdk,or here: http://www.nsmod.org/forums/index.php?showtopic=1751

You can get many many more infos and plugins on www.nsmod.org (the big NS Modder community)
And the best and usefull sites ever :http://www.amxmodx.org/doc/ http://wiki.amxmodx.org/index.php/Main_Page
__________________

Last edited by schnitzelmaker; 07-13-2006 at 11:24.
schnitzelmaker is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode