All public logs
Jump to navigation
Jump to search
Combined display of all available logs of NPC for VCMP 0.4 Servers. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
(newest | oldest) View (newer 50 | older 50) (20 | 50 | 100 | 250 | 500)- 16:54, 21 August 2023 Habi talk contribs created page GetVehicleTurretRot (Created page with "{{Welcome|desc=Returns the turret rotation of the vehicle, if it have one| params=<source>(vehicleid)</source> <poem>vehicleid : The ID of the vehicle, whose turret rotation is to be obtained.</poem>| retvals=The Turret rotation of the vehicle as Vector on success, Vector(0,0,0) on failure ( invalid vehicleid/not streamedin ). If the vehicle has no turret, it is expected to return 0 as both the horizontal and vertical turret resulting in Vector(0,0,0) }}")
- 16:47, 21 August 2023 Habi talk contribs created page GetVehicleRotation (Created page with "{{Welcome|desc=Returns the rotation of the streamed in vehicle| params=<source>(vehicleid)</source> <poem>vehicleid : The ID of the vehicle, whose rotation is to be obtained.</poem>| retvals=The Quaternion rotation of the vehicle on success, Quaternion(0,0,0,1) on failure ( invalid vehicleid / not streamed in )}}")
- 16:46, 21 August 2023 Habi talk contribs created page GetVehiclePos (Created page with "{{Welcome|desc=Returns the position of the streamed in vehicle| params=<source>(vehicleid)</source> <poem>vehicleid : The ID of the vehicle, whose position is to be obtained.</poem>| retvals=The position of the vehicle as Vector on success, Vector(0,0,0) on failure ( invalid vehicleid/not streamed in )}}")
- 16:45, 21 August 2023 Habi talk contribs created page GetVehicleSpeed (Created page with "{{Welcome|desc=Returns the speed of the streamed in vehicle| params=<source>(vehicleid)</source> <poem>vehicleid : The ID of the vehicle, whose speed is to be obtained.</poem>| retvals=The Speed of the vehicle as Vector on success, Vector(0,0,0) on failure ( invalid vehicleid )}}")
- 16:43, 21 August 2023 Habi talk contribs created page GetVehicleHealth (Created page with "{{Welcome|desc=Returns the health of the vehicle as float| params=<source>(vehicleid)</source> <poem>vehicleid : The ID of the vehicle whose health is to be found</poem>| retvals=The health of the vehicle on success, 0.0 on failure (invalid/not streamedin vehicle)}}")
- 16:41, 21 August 2023 Habi talk contribs created page GetVehicleDamage (Created page with "{{Welcome||desc=Returns the damage amount of the vehicle| params=<source>(vehicleid)</source> <poem>vehicleid : The ID of the vehicle whose damage is to be found</poem>| retvals=The damage of the vehicle on success, -1 on invalid vehicle ( not streamed in )}}")
- 16:39, 21 August 2023 Habi talk contribs created page GetVehicleModel (Created page with "{{Welcome|desc=Gets the Model of the vehicle| params=<source>(vehicleid)</source> <poem>vehicleid : The ID of the vehicle, whose model is to be found</poem>| retvals=The Model of the vehicle on success, 0 if the vehicleid is invalid (not streamed in )}}")
- 16:36, 21 August 2023 Habi talk contribs created page GetVehicleDriver (Created page with "{{Welcome|desc=Get the ID of the player, who is the driver of the vehicle| params=<source>(vehicleid)</source> <poem>vehicleid : The ID of the streamed in vehicle whose driver is to be found.</poem>| retvals=The ID of the driver on success, 255 if vehicle not streamed in or it has no driver|}}")
- 17:57, 27 June 2023 Habi talk contribs created page V1 6 beta5 release notes (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #1affaa; padding: 1em;"> '''Version 1.6 beta5''' Release date: 27.June.2023 </poem> ==What is new?== *New functions and events of sending Projectiles and Explosions. *LibRPC functions extended. *New functions RequestClass, RequestSpawn and event OnNPCClassSelect ==Plugins included with downloads== *LibAction *LibRPC *z-finder ==Downloads== {| cla...")
- 15:34, 27 June 2023 Habi talk contribs created page LibRPC S (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f2f4e6; padding: 1em;"> This function was added in LibRPC (API 1.3) (not released as on writing this page) and will not work on previous versions. </poem> {{Welcome|desc=Performs sq_set/sq_newslot on remote vm.| params=<source lang="lua">( p1, p2, p3 )</source> <poem> ::p1 : The object in which sq_set is performed. If string then p1 is considered key and p2 as value for the set operation and p3 is not checked. ::...")
- 04:51, 27 June 2023 Habi talk contribs created page LibRPC Z (Created page with "{{Welcome|desc=Creates userdata when passed to RFC/F/Fa/RFCa has the effect of rawget. Unlike other functions, this is a first order function.| params=<source lang="lua">( p1, p2, ... )</source> <poem> ::p1 : If string, a rawget will be performed on the roottable when executed on remote side. Optional Parameters ::p2, p3, ... : A key which will be popped and get operation performed on p(i-1) </poem>| example= {{{!}} class="wikitable" {{!}}- ! Goal ! Corresponding code !...")
- 08:05, 25 June 2023 Habi talk contribs created page LibRPC Fa (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f2f4e6; padding: 1em;"> This function was added in LibRPC (API 1.3) (not released as on writing this page) and will not work on previous versions. </poem> {{Welcome|desc=This will return a userdata which can be passed either to the first order parameter or any of the second order parameters of functions F, Fa, RFC and RFCa.| params=<syntaxhighlight>[string]funcname or [userdata]</syntaxhighlight> <poem> ::funcnam...")
- 17:44, 24 June 2023 Habi talk contribs created page ReadString (Created page with "{{Welcome|desc=This will read a string from the blob of onServerData.|params=<source lang="lua">( data )</source><poem> ::data : The blob obtained from onServerData </poem>| example=<source lang="lua"> function OnServerData( data ) { local a = ReadString(data); print("I received string " + a + " from server\n"); } </source>| retvals=The function returns the string on success. On failure throw error.| relfuncs=*ReadInt *ReadFloat *ReadByte *O...")
- 17:44, 24 June 2023 Habi talk contribs created page ReadFloat (Created page with "{{Welcome|desc=This will read a float from the blob of onServerData.|params=<source lang="lua">( data )</source><poem> ::data : The blob obtained from onServerData </poem>| example=<source lang="lua"> function OnServerData( data ) { local a = ReadFloat(data); print("I received float " + a + " from server\n"); } </source>| retvals=The function returns the float on success. On failure throw error.| relfuncs=*ReadInt *ReadByte *ReadString *OnSe...")
- 17:43, 24 June 2023 Habi talk contribs created page ReadByte (Created page with "{{Welcome|desc=This will read a byte from the blob of onServerData.|params=<source lang="lua">( data )</source><poem> ::data : The blob obtained from onServerData </poem>| example=<source lang="lua"> function OnServerData( data ) { local a = ReadByte(data); print("I received byte " + a + " from server\n"); } </source>| retvals=The function returns the integer on success. On failure throw error.| relfuncs=*ReadInt *ReadFloat *ReadString *OnSe...")
- 17:40, 24 June 2023 Habi talk contribs created page ReadInt (Created page with "local a= ReadInt(data); {{Welcome|desc=This will read an integer(4 bytes) from the given blob obtained from onServerData.|params=<source lang="lua">( data )</source><poem> ::data : The blob obtained from onServerData </poem>| example=<source lang="lua"> function OnServerData( data ) { local a= ReadInt(data); print("I received " + a + " from server\n"); } </source>| retvals=The function returns the integer on success. On failure throw error.| relfuncs=*Rea...")
- 17:34, 24 June 2023 Habi talk contribs created page WriteString (Created page with "{{Welcome|desc=This will write a string to the given blob which can be later passed to SendServerData.|params=<source lang="lua">( b, str )</source><poem> ::b : The blob in which to write the integer. ::str: The string to be written </poem>| example=<source lang="lua"> local b=blob(); WriteString(b, "BodyPart-Head" ); SendServerData(b);</source>| retvals=The function returns true on success.| relfuncs=*WriteByte *WriteFloat *WriteInt *SendServerData}}")
- 17:33, 24 June 2023 Habi talk contribs created page WriteFloat (Created page with "{{Welcome|desc=This will write a float to the given blob which can be later passed to SendServerData.|params=<source lang="lua">( b, f )</source><poem> ::b : The blob in which to write the integer. ::f : The float value to be written </poem>| example=<source lang="lua"> local b=blob(); WriteInt(b, 100.1234 ); SendServerData(b);</source>| retvals=The function returns true on success.| relfuncs=*WriteByte *WriteInt *WriteString *SendServerData}}")
- 17:32, 24 June 2023 Habi talk contribs created page WriteByte (Created page with "{{Welcome|desc=This will write one byte(0-255) to the given blob which can be later passed to SendServerData.|params=<source lang="lua">( b, byte )</source><poem> ::b : The blob in which to write the integer. ::byte : The byte( 0-255 ) to be written </poem>| example=<source lang="lua"> local b=blob(); WriteByte(b, 100 ); SendServerData(b);</source>| retvals=The function returns true on success.| relfuncs=*WriteInt *WriteFloat *WriteString *SendServerDat...")
- 05:35, 24 June 2023 Habi talk contribs created page WriteInt (Created page with "{{Welcome|desc=This will write an integer to the given blob.|params=( b, int )}}")
- 00:08, 8 June 2023 Habi talk contribs created page LibRPC Examples (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> The new version of LibRPC (of this article) is about to be released </poem> New functions Fa, RFCa was added to library for raw calling of functions with a specified environment class or instance. Earlier the 'this' was always the roottable. By using "compilestring", one do not need Fa and RFCa. ==The Problem== <source> F("MyFunction")(p1, p2, ... ) </source>...")
- 18:21, 29 May 2023 Habi talk contribs created page Walking man (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This script uses SetAnim every 100 ms. </poem> <poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This script requires modules: LibRPC and z-finder. </poem> <poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This script is made as of npcclient version 1.6 beta 4 patch 1. </poem> ==Server Side== 1. In scripts/main.nut...")
- 16:38, 24 May 2023 Habi talk contribs created page RequestSpawn (Created page with "{{Welcome| desc=This will send a request to server for spawning in the currently selected class.| params=<syntaxhighlight lang="lua">NoParams</syntaxhighlight> example=<source lang="lua"> function OnNPCClassSelect() { if(GetPlayerTeam(GetMyID())==2) RequestSpawn(); return 1 } </source>| note= Inside the function, use Team, color, position to check if the class matches as it is not possible to obtain the class id directly.| relfuncs=*RequestClass *OnNP...")
- 16:19, 24 May 2023 Habi talk contribs created page RequestClass (Created page with "{{Welcome| desc=This will send a request to server to show class for spawning.| params=<syntaxhighlight lang="lua">(relativeclass=CLASS_CURRENT)</syntaxhighlight> <poem>::relativeclass : Optional parameter. Values can be CLASS_PREVIOUS, CLASS_NEXT. If former value is used, then the server will show previous class. If latter value is used, then server will show next class. If paramter omitted or CLASS_CURRENT is used, the server will show the current class( before npc was...")
- 16:03, 24 May 2023 Habi talk contribs created page OnNPCClassSelect (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This function was added in v1.6 beta 4 patch2 and will not work on previous versions. </poem> {{Welcome| desc=This function is called when server grants a class to NPC to select for spawning. This function is called not when npc selects a class, but rather when a class is presented to npc.| params=<syntaxhighlight lang="lua">NoParams</syntaxhighlight>| retvals=Return true if RequestSpawn...")
- 18:35, 8 May 2023 Habi talk contribs created page GetAmmoOfMyWeapon (Created page with "{{Welcome| desc=Returns the ammo of the weapon specified| params=<source lang="lua">(weaponid)</source> ::weaponid : The ID of the weapon possessed by npc whose ammo is to be determined.| retvals=If the weapon is possessed by npc, then this returns the available ammo of the weapon provided. Otherwise returns 0. Also returns 0 for fists/brass knuckles.| relfuncs= *SelectWeapon *GetAvailableWeapons| }}")
- 18:30, 8 May 2023 Habi talk contribs created page GetAvailableWeapons (Created page with "{{Welcome|desc=Returns all the weapons possessed by npc as an array| params=<source lang="lua">NoParams</source>| retvals=an array whose values are the IDs of the weapons possessed by the npc. The weaponid 0 (fists) is excluded.| relfuncs= *SelectWeapon *GetAmmoOfMyWeapon| example= <source lang="lua"> local a = GetAvailableWeapons(); SendChat("I have "+ a.len()+" weapons.");</source> }}")
- 18:26, 8 May 2023 Habi talk contribs created page SelectWeapon (Created page with "{{Welcome|desc=Sets the npc's current weapon and sends a sync packet if on foot.| params=(weaponid) <poem> ::weaponid : The Id of the weapon </poem>| retvals=true on success, false if the weapon is not possessed by npc.| relfuncs= *GetAvailableWeapons *GetAmmoOfMyWeapon |}}")
- 05:37, 6 May 2023 Habi talk contribs created page Z-finder (Created page with "This library is used to get the ground z co-ordinate for the npc to walk. It relies on 16 MB file default.map ( vice city map ). z-finder is ported from [https://forum.vc-mp.org/index.php?topic=9006 Miami-Scale] plugin of server. ==Functions== {| class="wikitable" ! Return value !! Function Name !! Parameter !! Description |- | true on success || MiamiScale_Init || [string] mapfile || The full path to mapfile as parameter |- | true or null || MiamiScale_Unload || - || |...")
- 22:58, 4 May 2023 Habi talk contribs created page V1 6 beta4 release notes (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #1affaa; padding: 1em;"> '''Version 1.6 beta4''' Release date: 05.May.2023 </poem> ==What is new?== * ==Plugins included with downloads== *LibAction *LibRPC ==Downloads== {| class="wikitable" |- ! Operating system ! bit ! version ! Link ! Size |- | Windows | 32 and 64 | rel006 | [https://sourceforge.net/projects/npc-for-vcmp/files/npc_vcmp_rel006_windows_v1.6-beta-4.zip...")
- 13:27, 4 May 2023 Habi talk contribs created page Template:Projectiles (Created page with "The following weapons act as projectiles {| | <img http://wiki.thijn.ovh/index.php?title=File:Weapon_12.png/> |- | caption |}")
- 16:49, 3 May 2023 Habi talk contribs created page OnExplosion (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This function was added in v1.6 beta 4 and will not work on previous versions. </poem> {{Welcome| desc=This event will be called when server creates an explosion.| params=<source lang="lua">( type, position, playerCaused, isOnGround )</source> ::type : The type (integer 0-12,..) of the explosion. ::position : The Vector position where the explosion happened. ::playerCaused : The ID of the...")
- 16:44, 3 May 2023 Habi talk contribs created page OnProjectileFired (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This function was added in v1.6 beta 4 and will not work on previous versions. </poem> {{Welcome| desc=This event is called when a projectile is fired by a player| params=<syntaxhighlight lang="lua">( playerId, weaponId, position, r1, r2, r3, r4, r5, r6, r7 )</syntaxhighlight> ::playerId : The ID of the player who fired the projectile ::weaponId : The ID of the projectile weapon which was...")
- 16:40, 3 May 2023 Habi talk contribs created page FireProjectile (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This function was added in v1.6 beta 4 and will not work on previous versions. </poem> {{Welcome| desc=Fires a projectile like rocket launcher| params=<syntaxhighlight lang="lua">(weaponid, position, r1, r2, r3, r4, r5, r6, r7)</syntaxhighlight> <poem>::weaponid: The weapon ID of the projectile ::position: The Vector position ::r1-r7 : These are float values in the range of -PI to PI</poem...")
- 10:05, 3 May 2023 Habi talk contribs created page LibRPC RFC (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f2f4e6; padding: 1em;"> This function was added in LibRPC (API 1.2). </poem> {{Welcome| desc='''This method is used to call server functions from npc script using streams as medium.''' Calling RFC will returns function which can be used to call remote functions of server( i.e. functions in squirrel gamemode) when called with their parameters. Note that a single call to RFC(..) will return function and a double ca...")
- 10:00, 3 May 2023 Habi talk contribs created page LibRPC F (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f2f4e6; padding: 1em;"> This function was added in LibRPC (API 1.2) and will not work on previous versions. </poem> {{Welcome|desc=This will return a userdata which can be passed to RFC for calling remote functions.| params=<syntaxhighlight>[string]funcname or [userdata]</syntaxhighlight> <poem> ::funcname : The name of a function of the npcscript or userdata returned by F(On the assumption that call to just...")
- 09:05, 20 February 2023 Habi talk contribs created page V1 6 beta3 release notes (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #1affaa; padding: 1em;"> '''Version 1.6 beta3''' Release date: 20.Feb.2023 </poem> ==What is new?== *Purpose is to update API for new library LibAction * ==Downloads== {| class="wikitable" |- ! ! bit ! version ! Link |- | Windows | style="text-align:center;" | 32 and 64 | rel006 | https://sourceforge.net/projects/npc-for-vcmp/files/npc_vcmp_rel006_windows_v1.6_beta2...")
- 04:06, 20 February 2023 Habi talk contribs created page LibAction (Created page with "Callbacks OnTargetCleared(targetpid, reason) OnTargetOutOfRange(targetid) OnPullingTrigger([integer] keys, [Vector]pos, [float]angle, [integer]health, [integer]armour, [integer]weapon, [integer]ammo, [Vector]speed, [Vector]aimpos, [Vector]aimdir, [bool]isCrouching, [bool]isReloading ) -Called when target is out of range of the weaponrange of the current weapon of npc. If nothing is specified, npc resumes shooting when target comes in range again. Functions ShootTarget(p...")
- 09:24, 16 February 2023 Habi talk contribs created page Npcmodule (Created page with "Automatically decrease health of npc and dies, if this module is loaded.")
- 09:23, 16 February 2023 Habi talk contribs created page LibRPC (Created page with "Library used to execute functions or script send from server.")
- 14:07, 14 February 2023 Habi talk contribs created page EnterVehicle (Created page with "{{Welcome| desc=Sends request to server for entering into a vehicle.| params=<syntaxhighlight lang="lua">(vehicleid, seatid) </syntaxhighlight> <poem>::vehicleid : The id of the vehicle to enter into. ::seatid : The seat id. 0 means driver seat.</poem>| example=<source lang="lua"> EnterVehicle(23, 0); </source>| relfuncs=*OnVehicleEnter }}")
- 13:31, 14 February 2023 Habi talk contribs created page QuitServer (Created page with "{{Welcome| desc=Quits quit message to server.| params=<syntaxhighlight lang="lua">()</syntaxhighlight>| }}")
- 13:28, 14 February 2023 Habi talk contribs created page GetMyID (Created page with "{{Welcome| desc=Returns the player ID of the npc in the server.| params=<syntaxhighlight lang="lua">()</syntaxhighlight>| example=<source lang="lua"> GetMyID(); </source>| relfuncs=*GetMyName }}")
- 13:20, 14 February 2023 Habi talk contribs created page GetMyName (Created page with "{{Welcome| desc=Returns thr name of the npc.| params=<syntaxhighlight lang="lua">NoParams</syntaxhighlight>| retval=The name of the npc as string.| note=This is equivalent to <source lang="lua" inline>GetPlayerName(GetMyId());</source> relfuncs=*GetMyId }}")
- 06:42, 14 February 2023 Habi talk contribs moved page V1 6 release notes to V1 6 alpha release notes over redirect
- 06:42, 14 February 2023 Habi talk contribs deleted redirect V1 6 alpha release notes by overwriting (Deleted to make way for move from "V1 6 release notes")
- 06:36, 14 February 2023 Habi talk contribs created page V1 6 beta2 release notes (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #1affaa; padding: 1em;"> '''Version 1.6 beta2''' </poem> ==What is new?== * ==Downloads== {| class="wikitable" |- ! ! bit ! version ! Link |- | Windows | 32 and 64 | rel006 | https://sourceforge.net/projects/npc-for-vcmp/files/npc_vcmp_rel006_windows_v1.6_beta2.zip/download |- | Linux | style="text-align:center;" | x64 | rel006 | https://sourceforge.net/projects/npc-for-vcmp/files/npc_vcmp_rel006_linux_x64_v1.6_...")
- 21:58, 3 February 2023 Habi talk contribs created page File:Ezgif-1-59186a6cc7.gif
- 21:58, 3 February 2023 Habi talk contribs uploaded File:Ezgif-1-59186a6cc7.gif
- 17:22, 1 February 2023 Habi talk contribs created page Template:NPC HIDE EXPORTS (Created page with "The npc04relxx plugin makes use of the functions exported (3) and offers the following functions if loaded with hidenpcxx plugin. *SetMaxPlayersOut *SetNameOfAllNPC")