Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - vitovc

#1
General Discussion / Re: Some Suggestions
Nov 12, 2024, 03:44 PM
Quote from: [TDA]Speed on Nov 12, 2024, 08:22 AMbut why scripting it while its already available in the offline game
because it is not available in vc-mp as built-in function
Quote from: [TDA]Speed on Nov 12, 2024, 08:22 AMi have tried many things like attaching player to vehicle but this not working
for me it was worked (not perfect but worked) so it depends of scripter
#2
thanks habi. its very easy to configure, everything is guided step by step. awesome!
#3
Tutorials / Re: Walking npc
Nov 04, 2024, 06:44 PM
it is possible but he wants you to code pathfinding for him xD
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.
#4
Quote from: PSL on Oct 30, 2024, 06:13 AMI will try to modify your code for real-time monitoring of the player's screen
Raytrace function is using CPU too much, real-time is possible only for very low-resolution and low recoding frames per second.
#5
Off-Topic General / Re: A.I Powered
Oct 26, 2024, 03:30 PM
for real, 2-3 years ago... Ask Spiller
#6
Off-Topic General / Re: A.I Powered
Oct 26, 2024, 03:18 PM
as I remember RTV has neural-network chatbot in-game.
#7
Off-Topic General / Re: Remmeber this .. ?
Oct 18, 2024, 08:50 PM
I remember I played 0.3 version in 2013 or 2014, then I quit vcmp for few months then I back to play.
VC:MP is not dying. It's just some servers became unpopulated. Few years ago RTV were popular, past year CTF had big playercount, this year CTB has alot of players too. There is alot of new players, some came in 2023, calling themself old players and they are more skilled than me.

The past is not better. Memory of human is forgetting bad things and keeps good memories. Also when you are young you feel strong emotions and being newbie, making friends in-game and so on you memorizing everying in specific emotional way too. Its affect memory biases. Technically modern vcmp is better than past.
#8
QuoteSo the questiom remains how are the traffic lights so perfectly attached?
obviously - not by game's scripts. best that game script can provide is 1 frame delay sprite.
#9
car neon is possible with client side script sprite but it will have 1 frame lag delay. for moving car its too much even at 60fps (and lag compensation will make it not smooth)
#10
Quote from: MEGAMIND on Oct 10, 2024, 07:33 AMis there any mwthod for 3d arrow to be on a pickup model and object id?
/Grand Theft Auto Vice City/models/generic/arrow.DFF
there is no "object id" in vcmp for that.
#11
General Discussion / Re: Some Suggestions
Oct 04, 2024, 08:31 PM
1) you can attach player to car roof by clientside script
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
#12
General Discussion / Re: Some Suggestions
Oct 04, 2024, 11:13 AM
#14
hi habi. please add InPoly function. its useful to calcualte model of vehicle's "collisions" (by rotated rectangles) on side of npc's scripts


inline bool Internal_InPoly(float fX, float fY,
    const unsigned int uiPoints, const AreaPoints fPoints[])
{
    // http://sidvind.com/wiki/Point-in-polygon:_Jordan_Curve_Theorem

    // The points creating the polygon
    float x1, x2;

    // How many times the ray crosses a line segment
    int crossings = 0;

    // Iterate through each line
    for (unsigned int i = 0; i < uiPoints; i++)
    {
        // This is done to ensure that we get the same result when
        // the line goes from left to right and right to left.
        if (fPoints[i].x < fPoints[(i + 1) % uiPoints].x)
        {
            x1 = fPoints[i].x;
            x2 = fPoints[(i + 1) % uiPoints].x;
        }
        else
        {
            x1 = fPoints[(i + 1) % uiPoints].x;
            x2 = fPoints[i].x;
        }

        // First check if the ray is able to cross the line
        if (fX > x1 && fX <= x2 && (fY < fPoints[i].y || fY <= fPoints[(i + 1) % uiPoints].y))
        {
            static const float eps = 0.000001f;

            // Calculate the equation of the line
            float dx = fPoints[(i + 1) % uiPoints].x - fPoints[i].x;
            float dy = fPoints[(i + 1) % uiPoints].y - fPoints[i].y;
            float k;

            if (fabs(dx) < eps)
                k = 0xffffffff;
            else
                k = dy / dx;

            float m = fPoints[i].y - k * fPoints[i].x;

            // Find if the ray crosses the line
            float y2 = k * fX + m;
            if (fY <= y2)
                crossings++;
        }
    }

    if (crossings % 2 == 1)
        return true;

    return false;
}
#15
\Rockstar Games\Grand Theft Auto Vice City\mss32.dll
\Rockstar Games\Grand Theft Auto Vice City\dinput8.dll
\Rockstar Games\Grand Theft Auto Vice City\d3d8.dll
I think problem may be in those .dll (mods)
you need clean (no mods) copy of vice city to play vc-mp correctly.