Quote from: [TDA]Speed on Nov 12, 2024, 08:27 AMokey brother thanks for link, you asking or suggesting? xDpls use transltor that i suggested u to that if u want u can test it out.. i dont need to ask anyone
Quote from: habi2 on Nov 12, 2024, 08:10 AMHi Megamind i was not well for two days and now recovering fast.thanks habi i also found a work around from serverside for facing the npc towards me but it will be alot better if just single line of code can do the work easily instead of doing a full math, also get well soon
The mechanism of creating npc with skin was created when npc didn't die. Now it dies and gets skin of the class which in your case maybe lovefist. I will fix it in next update. But you canSendCommand("_npc_skin_request 65");
to set npc skin anytime. The above code set it to 65, as we discussed before. OnNPCSpawn might be the right place.
About server crashing issue, it is the 64-bit version of windows (and perhaps linux too) that has bug when using RFC. I will correct it.
Quote from: [TDA]Speed on Nov 12, 2024, 08:25 AMsamp needs alot of work where mine doesntQuote from: MEGAMIND on Oct 29, 2024, 11:11 AMyes but the problem is its need alot of work alot alot..Quote from: [TDA]Speed on Oct 29, 2024, 10:44 AMthats a good thing really imagine an AI npc with habis npcs plugins and AI of chatgpta.i npc gonna take ober every server and kill the shit out of users, pro npc 😅
actually got inspired by
so thought why not one for vcmp
Quote from: MEGAMIND on Nov 10, 2024, 04:16 PMokey brother thanks for link, you asking or suggesting? xDQuote from: [TDA]Speed on Nov 10, 2024, 04:12 PMu cant test that npc.ai at my server more of that want in depth knowledge ? https://forum.vc-mp.org/index.php?topic=3350.msg54387#newQuote from: MEGAMIND on Nov 10, 2024, 10:30 AMQuote from: [TDA]Speed on Nov 10, 2024, 09:30 AMi did it eventaully u can do it too, get the nearest player id from distanceotpoint and walk it there.. an example here it moves twoards the loaction of player where ever it is goingQuote from: vitovc on Nov 04, 2024, 06:44 PMit is possible but he wants you to code pathfinding for him xDmaybe we can make something more easliy then this like know the nearest pos of npc and walk to it
actually there is alot of AI-stuff can be done (and needed for DM-gamemods). I feel fear when I imagine how much work should be done to make npc to act like real players in terms of DM.Quote from: MEGAMIND on Nov 10, 2024, 10:30 AMlool man thats awsome! nick workQuote from: [TDA]Speed on Nov 10, 2024, 09:30 AMi did it eventaully u can do it too, get the nearest player id from distanceotpoint and walk it there.. an example here it moves twoards the loaction of player where ever it is goingQuote from: vitovc on Nov 04, 2024, 06:44 PMit is possible but he wants you to code pathfinding for him xDmaybe we can make something more easliy then this like know the nearest pos of npc and walk to it
actually there is alot of AI-stuff can be done (and needed for DM-gamemods). I feel fear when I imagine how much work should be done to make npc to act like real players in terms of DM.
Quote from: MEGAMIND on Oct 29, 2024, 11:11 AMyes but the problem is its need alot of work alot alot..Quote from: [TDA]Speed on Oct 29, 2024, 10:44 AMthats a good thing really imagine an AI npc with habis npcs plugins and AI of chatgpta.i npc gonna take ober every server and kill the shit out of users, pro npc 😅
actually got inspired by
so thought why not one for vcmp
Quote from: vitovc on Oct 04, 2024, 08:31 PM1) you can attach player to car roof by clientside scriptbut why scripting it while its already available in the offline game also i have tried many things like attaching player to vehicle but this not working
2) car must have a driver for correct sync the person on roof of car (vcmp has build-in attach for people who standing at car roof - for view of remote players but only if car has a driver)
3) you need to care in case shooter (player at roof) fallen down to make him stand up by script otherwise he may keep laying on car roof
SendCommand("_npc_skin_request 65");
to set npc skin anytime. The above code set it to 65, as we discussed before. OnNPCSpawn might be the right place.Quote from: Mohamed Boubekri on Nov 27, 2017, 09:24 PM@! Brother zeus You Can Do That's For For Driver Cars
If You Can't / Its oK,
About That's Niice Work, But i Want For the Driver Vehicles
If You Can Do Sent Me Here Thanks.
Quote from: D4rkR420R on Nov 28, 2017, 05:49 AMQuote from: Mohamed on Nov 27, 2017, 09:24 PM@! Brother zeus You Can Do That's For For Driver Cars
If You Can't / Its oK,
About That's Niice Work, But i Want For the Driver Vehicles
If You Can Do Sent Me Here Thanks.
It isn't possible to spectate yourself, or in this case, the driver. Attempt to spectate yourself in your server & you'll see. We usually spectate ourselves on purpose to disable spectating mode.
onentervehicle
if (vehicle.Driver != null)
{
if (vehicle.Driver.ID != player.ID)
{
player.SpectateTarget = vehicle.Driver;
vehicle.Driver.SpectateTarget = player; // Driver also spectates the player
}
else
{
local MaxOccupants = 8;
for (local i = 1; i <= MaxOccupants; i++)
{
local Occupant = vehicle.GetOccupant(i);
if (Occupant != null && Occupant.SpectateTarget == null)
Occupant.SpectateTarget = player;
}
}
}
onexitvehicle
if (player.SpectateTarget != null)
player.SpectateTarget = null; /* It's not necessary to use this line */
if (vehicle.Driver == null)
{
local MaxOccupants = 8;
for (local i = 1; i <= MaxOccupants; i++)
{
local Occupant = vehicle.GetOccupant(i);
if (Occupant != null)
{
// Clear the spectate target for all occupants
if (Occupant.SpectateTarget != null)
Occupant.SpectateTarget = null;
}
}
}
else
{
// If vehicle has a driver, make sure the driver stops spectating as well
if (vehicle.Driver.SpectateTarget != null)
vehicle.Driver.SpectateTarget = null;
}
u can if u have a passenger at a side