35 |
forward client_changeclass(id, newclass, oldclass); |
forward client_changeclass(id, newclass, oldclass); |
36 |
|
|
37 |
/** |
/** |
38 |
* Called whenever the client builds a structyure. |
* Called whenever the client builds a structure. |
39 |
* |
* |
40 |
* @param idPlayer The player index who triggered the building. |
* @param idPlayer The player index who triggered the building. |
41 |
* @param idStructure The structure index that was created. |
* @param idStructure The structure index that was created. |
663 |
native Float:ns_get_obs_energy(idObs); |
native Float:ns_get_obs_energy(idObs); |
664 |
native ns_set_obs_energy(idObs,Float:value); |
native ns_set_obs_energy(idObs,Float:value); |
665 |
native Float:ns_add_obs_energy(idObs,Float:value); |
native Float:ns_add_obs_energy(idObs,Float:value); |
666 |
|
|
667 |
|
/** |
668 |
|
* Removes an upgrade from the player's bought and active upgrade lists. |
669 |
|
* This will not refund the points spent on the upgrade, nor will it |
670 |
|
* immediately strip the upgrade if the player is alive. Rather, it will |
671 |
|
* make it so the player no longer receives the upgrade on spawn. |
672 |
|
* |
673 |
|
* @note This only works in combat. |
674 |
|
* @params idPlayer The player index to change upgrades for. |
675 |
|
* @params ugprade The impulse number for the upgrade to strip. |
676 |
|
* @return 2 for upgrade removed from player's bought and active list. |
677 |
|
* 1 for upgrade removed from player's bought list only. |
678 |
|
* 3 for upgrade removed from player's active list only (shouldn't happen, just incase.) |
679 |
|
* 0 for the player didn't have the upgrade in either list. |
680 |
|
*/ |
681 |
|
native ns_remove_upgrade(idPlayer, upgrade); |
682 |
|
|
683 |
/** |
/** |
684 |
* Particle system natives |
* Particle system natives |
685 |
* - |
* - |