Skip to content

Commit f0dbd77

Browse files
authored
Even more optional params, missed tags
1 parent ec6b391 commit f0dbd77

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

omp_npc.inc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ native Float:NPC_GetArmour(npcid);
491491
/**
492492
* <library>omp_npc</library>
493493
*/
494-
native NPC_SetInvulnerable(npcid, bool:toggle);
494+
native NPC_SetInvulnerable(npcid, bool:toggle = true);
495495

496496
/**
497497
* <library>omp_npc</library>
@@ -525,7 +525,7 @@ native NPC_SetWeapon(npcid, WEAPON:weaponid);
525525
/**
526526
* <library>omp_npc</library>
527527
*/
528-
native NPC_GetWeapon(npcid);
528+
native WEAPON:NPC_GetWeapon(npcid);
529529

530530
/**
531531
* <library>omp_npc</library>
@@ -580,12 +580,12 @@ native NPC_SetFightingStyle(npcid, FIGHT_STYLE:style);
580580
/**
581581
* <library>omp_npc</library>
582582
*/
583-
native NPC_GetFightingStyle(npcid);
583+
native FIGHT_STYLE:NPC_GetFightingStyle(npcid);
584584

585585
/**
586586
* <library>omp_npc</library>
587587
*/
588-
native bool:NPC_EnableReloading(npcid, bool:enable);
588+
native bool:NPC_EnableReloading(npcid, bool:enable = true);
589589

590590
/**
591591
* <library>omp_npc</library>
@@ -600,7 +600,7 @@ native bool:NPC_IsReloading(npcid);
600600
/**
601601
* <library>omp_npc</library>
602602
*/
603-
native bool:NPC_EnableInfiniteAmmo(npcid, bool:enable);
603+
native bool:NPC_EnableInfiniteAmmo(npcid, bool:enable = true);
604604

605605
/**
606606
* <library>omp_npc</library>
@@ -610,7 +610,7 @@ native bool:NPC_IsInfiniteAmmoEnabled(npcid);
610610
/**
611611
* <library>omp_npc</library>
612612
*/
613-
native NPC_GetWeaponState(npcid);
613+
native WEAPONSTATE:NPC_GetWeaponState(npcid);
614614

615615
/**
616616
* <library>omp_npc</library>
@@ -862,7 +862,7 @@ native NPC_GetVehicleHydraThrusters(npcid);
862862
/**
863863
* <library>omp_npc</library>
864864
*/
865-
native NPC_SetVehicleGearState(npcid, gearState);
865+
native NPC_SetVehicleGearState(npcid, LANDING_GEAR_STATE:gearState);
866866

867867
/**
868868
* <library>omp_npc</library>
@@ -931,12 +931,12 @@ native
931931
/**
932932
* <library>omp_npc</library>
933933
*/
934-
native bool:NPC_StartPlayback(npcid, const recordName[], bool:autoUnload, Float:startX, Float:startY, Float:startZ, Float:rotX, Float:rotY, Float:rotZ);
934+
native bool:NPC_StartPlayback(npcid, const recordName[], bool:autoUnload = false, Float:startX = 0.0, Float:startY = 0.0, Float:startZ = 0.0, Float:rotX = 0.0, Float:rotY = 0.0, Float:rotZ = 0.0);
935935

936936
/**
937937
* <library>omp_npc</library>
938938
*/
939-
native bool:NPC_StartPlaybackEx(npcid, recordId, bool:autoUnload, Float:startX, Float:startY, Float:startZ, Float:rotX, Float:rotY, Float:rotZ);
939+
native bool:NPC_StartPlaybackEx(npcid, recordId, bool:autoUnload = false, Float:startX = 0.0, Float:startY = 0.0, Float:startZ = 0.0, Float:rotX = 0.0, Float:rotY = 0.0, Float:rotZ = 0.0);
940940

941941
/**
942942
* <library>omp_npc</library>
@@ -946,7 +946,7 @@ native bool:NPC_StopPlayback(npcid);
946946
/**
947947
* <library>omp_npc</library>
948948
*/
949-
native bool:NPC_PausePlayback(npcid, bool:paused);
949+
native bool:NPC_PausePlayback(npcid, bool:paused = true);
950950

951951
/**
952952
* <library>omp_npc</library>
@@ -1072,7 +1072,7 @@ native NPC_GetPathCount();
10721072
/**
10731073
* <library>omp_npc</library>
10741074
*/
1075-
native bool:NPC_AddPointToPath(pathid, Float:x, Float:y, Float:z, Float:stopRange);
1075+
native bool:NPC_AddPointToPath(pathid, Float:x, Float:y, Float:z, Float:stopRange = 0.2);
10761076

10771077
/**
10781078
* <library>omp_npc</library>
@@ -1092,7 +1092,7 @@ native NPC_GetPathPointCount(pathid);
10921092
/**
10931093
* <library>omp_npc</library>
10941094
*/
1095-
native bool:NPC_GetPathPoint(pathid, pointIndex, &Float:x, &Float:y, &Float:z, &Float:stopRange);
1095+
native bool:NPC_GetPathPoint(pathid, pointIndex, &Float:x, &Float:y, &Float:z, &Float:stopRange = 0.2);
10961096

10971097
/**
10981098
* <library>omp_npc</library>

0 commit comments

Comments
 (0)