@@ -299,7 +299,7 @@ native NPC_GetFacingAngle(npcid, &Float:angle);
299299/* *
300300 * <library>omp_npc</library>
301301 */
302- native NPC_SetVirtualWorld (npcid, vw );
302+ native NPC_SetVirtualWorld (npcid, virtualWorld );
303303
304304/* *
305305 * <library>omp_npc</library>
@@ -395,7 +395,7 @@ native
395395/* *
396396 * <library>omp_npc</library>
397397 */
398- native NPC_SetSkin (npcid, model );
398+ native NPC_SetSkin (npcid, skinid );
399399
400400/* *
401401 * <library>omp_npc</library>
@@ -474,7 +474,7 @@ native bool:NPC_IsInvulnerable(npcid);
474474 * <seealso name="NPC_IsDead" />
475475 * <seealso name="NPC_SetHealth" />
476476 */
477- native NPC_Kill (npcid, killerid = INVALID_PLAYER_ID, reason = 0 );
477+ native NPC_Kill (npcid, killerid = INVALID_PLAYER_ID, WEAPON: reason = 0 );
478478
479479/*
480480native # Weapons & Combat();
@@ -486,7 +486,7 @@ native
486486/* *
487487 * <library>omp_npc</library>
488488 */
489- native NPC_SetWeapon (npcid, weapon );
489+ native NPC_SetWeapon (npcid, WEAPON: weaponid );
490490
491491/* *
492492 * <library>omp_npc</library>
@@ -593,7 +593,7 @@ native NPC_SetWeaponState(npcid, weaponState);
593593 * <library>omp_npc</library>
594594 * <summary>Makes an NPC fire a weapon shot.</summary>
595595 * <param name="npcid">The ID of the NPC</param>
596- * <param name="weapon ">The weapon ID to use for shooting</param>
596+ * <param name="weaponid ">The weapon ID to use for shooting</param>
597597 * <param name="hitId">The ID of the target entity being shot</param>
598598 * <param name="hitType">The type of entity being hit (player, NPC, vehicle, etc.)</param>
599599 * <param name="endPointX">X coordinate of the bullet end point</param>
@@ -608,7 +608,7 @@ native NPC_SetWeaponState(npcid, weaponState);
608608 * <seealso name="NPC_AimAt" />
609609 * <seealso name="NPC_SetWeapon" />
610610 */
611- native NPC_Shoot (npcid, weapon , hitId, hitType, Float: endPointX, Float: endPointY, Float: endPointZ, Float: offsetX, Float: offsetY, Float: offsetZ, bool: isHit, NPC_ENTITY_CHECK: checkInBetweenFlags = NPC_ENTITY_CHECK_ALL);
611+ native NPC_Shoot (npcid, WEAPON: weaponid , hitId, hitType, Float: endPointX, Float: endPointY, Float: endPointZ, Float: offsetX, Float: offsetY, Float: offsetZ, bool: isHit, NPC_ENTITY_CHECK: checkInBetweenFlags = NPC_ENTITY_CHECK_ALL);
612612
613613/* *
614614 * <library>omp_npc</library>
@@ -665,52 +665,52 @@ native NPC_GetPlayerMovingTo(npcid);
665665/* *
666666 * <library>omp_npc</library>
667667 */
668- native NPC_SetWeaponAccuracy (npcid, weaponid, Float: accuracy);
668+ native NPC_SetWeaponAccuracy (npcid, WEAPON: weaponid, Float: accuracy);
669669
670670/* *
671671 * <library>omp_npc</library>
672672 */
673- native Float: NPC_GetWeaponAccuracy (npcid, weaponid);
673+ native Float: NPC_GetWeaponAccuracy (npcid, WEAPON: weaponid);
674674
675675/* *
676676 * <library>omp_npc</library>
677677 */
678- native NPC_SetWeaponReloadTime (npcid, weaponid, time);
678+ native NPC_SetWeaponReloadTime (npcid, WEAPON: weaponid, time);
679679
680680/* *
681681 * <library>omp_npc</library>
682682 */
683- native NPC_GetWeaponReloadTime (npcid, weaponid);
683+ native NPC_GetWeaponReloadTime (npcid, WEAPON: weaponid);
684684
685685/* *
686686 * <library>omp_npc</library>
687687 */
688- native NPC_GetWeaponActualReloadTime (npcid, weaponid);
688+ native NPC_GetWeaponActualReloadTime (npcid, WEAPON: weaponid);
689689
690690/* *
691691 * <library>omp_npc</library>
692692 */
693- native NPC_SetWeaponShootTime (npcid, weaponid, time);
693+ native NPC_SetWeaponShootTime (npcid, WEAPON: weaponid, time);
694694
695695/* *
696696 * <library>omp_npc</library>
697697 */
698- native NPC_GetWeaponShootTime (npcid, weaponid);
698+ native NPC_GetWeaponShootTime (npcid, WEAPON: weaponid);
699699
700700/* *
701701 * <library>omp_npc</library>
702702 */
703- native NPC_SetWeaponClipSize (npcid, weaponid, size);
703+ native NPC_SetWeaponClipSize (npcid, WEAPON: weaponid, size);
704704
705705/* *
706706 * <library>omp_npc</library>
707707 */
708- native NPC_GetWeaponClipSize (npcid, weaponid);
708+ native NPC_GetWeaponClipSize (npcid, WEAPON: weaponid);
709709
710710/* *
711711 * <library>omp_npc</library>
712712 */
713- native NPC_GetWeaponActualClipSize (npcid, weaponid);
713+ native NPC_GetWeaponActualClipSize (npcid, WEAPON: weaponid);
714714
715715/*
716716native # Vehicles();
@@ -859,7 +859,7 @@ native NPC_ClearAnimations(npcid);
859859/* *
860860 * <library>omp_npc</library>
861861 */
862- native NPC_SetSpecialAction (npcid, action );
862+ native NPC_SetSpecialAction (npcid, actionid );
863863
864864/* *
865865 * <library>omp_npc</library>
@@ -1186,12 +1186,12 @@ forward OnNPCWeaponStateChange(npcid, newState, oldState);
11861186/* *
11871187 * <library>omp_npc</library>
11881188 */
1189- forward OnNPCTakeDamage (npcid, damagerid , Float: damage , WEAPON: weapon , bodypart);
1189+ forward OnNPCTakeDamage (npcid, issuerid , Float: amount , WEAPON: weaponid , bodypart);
11901190
11911191/* *
11921192 * <library>omp_npc</library>
11931193 */
1194- forward OnNPCGiveDamage (npcid, damagedid, Float: damage , WEAPON: weapon , bodypart);
1194+ forward OnNPCGiveDamage (npcid, damagedid, Float: amount , WEAPON: weaponid , bodypart);
11951195
11961196/* *
11971197 * <library>omp_npc</library>
0 commit comments