NPC/Bots implementation in VCMP 0.4 Servers

Started by habi, Apr 01, 2022, 05:37 PM

Previous topic - Next topic

MEGAMIND

@habi2 how can u get a player position from RFC example

PlayerPos<-RFC(0,"GetPlayerPos");
print(PlayerPos);
where i want both the id 0 and other player that can be any id

MEGAMIND

Quote from: MEGAMIND on Nov 27, 2024, 10:41 AM@habi2 how can u get a player position from RFC example

PlayerPos<-RFC(0,"GetPlayerPos");
print(PlayerPos);
where i want both the id 0 and other player that can be any id
ah oki so i found an alternate idk if it sorts my issue out ill try this
local pid = GetPlayerIDFromName(player);
 local pid2 =  FindPlayer(pid).Pos;
 print(pid2);

and get back to u if what im really looking for

habi2

i have no idea what you are doing :P

MEGAMIND

Quote from: habi2 on Nov 27, 2024, 12:29 PMi have no idea what you are doing :P
u realy dont wanna know doing something wide range idk just to let know that making a.i see stuff via npc eyes lol


vitovc

GetPlayerPing will be helpful for lag-compensation shoots calculation (predict future position of player)
...::: vice city :::...
Useful things for vcmp: Relative position and finding an angle (in 3d), 3d line (like laser)

habi2

I have tried once which server packet send score and ping (F5) and was not able to find. Maybe i should try again

vitovc

Quote from: habi2 on Dec 29, 2024, 02:53 PMI have tried once which server packet send score and ping (F5) and was not able to find. Maybe i should try again
not so important to waste much time if its hard we always can send data to npc scripts via streams
...::: vice city :::...
Useful things for vcmp: Relative position and finding an angle (in 3d), 3d line (like laser)