Las Venturas Playground
Possible solution to vr / flip in the main world - Printable Version

+- Las Venturas Playground (https://forum.sa-mp.nl)
+-- Forum: Main Talk (https://forum.sa-mp.nl/forum-3.html)
+--- Forum: Development (https://forum.sa-mp.nl/forum-16.html)
+--- Thread: Possible solution to vr / flip in the main world (/thread-28370.html)

Pages: 1 2 3


Possible solution to vr / flip in the main world - Pedro - 11-04-2011

Hey guys! Probably most of you already saw the stunt world that the mapping team has been doing since the beginning of 2011. Apparently it seems funny to stunt on them in the beta server, but obviously we all are able to use the /vr command and in the main server such thing won't be possible.

Jay wanted to add pickups to repair the vehicles, but I think that would take too much work and, when we need to change the stunt world in the future, it’ll be harder to remove the correct pickups.
Since I'm not a dev or anything like that don't laugh at me if this doesn't make sense at all :+
Can't this new function "GetPlayerSurfingObjectID" be used to detect if the player's touching particularly objects, so we could completely give unlimited health to the vehicles or repair ‘em at these situations?

The only type of pickups that I think would be needed are the ones that give temporarily, for a few seconds, unlimited health and set nos to the vehicle. The one that I mentioned first would be useful to put mainly in the end of the ramps that completely makes you leave the mapped area. Some of the jumps are so high that you won't be able to "land" without getting on fire.

Admitting that what I just wrote works fine, you could make the exact same thing, but to enable the player flipping the vehicle when he / she’s touching some particular object by holding 'Caps lock' for example.

AND if all this works, what I suggest is to add a permanently textdraw that if the player's touching some of the defined objects it would show "Vehicle health: infinite", if the player's in a "normal" area it would simply show the vehicle's health (0-1000). Same goes to being able to flip the vehicle or not.

What do you think?



Re: Possible solution to vr / flip in the main world - MacSto - 11-04-2011

Well, we certainly need some kind of solution. These ramps aren't made to be used without some sort of /vr or no damage implementation.


Re: Possible solution to vr / flip in the main world - Jay - 11-04-2011

Nice find!

I'll have to check that function. AFAIK it only works when the player is on foot, but I will look into it!


Re: Possible solution to vr / flip in the main world - Jay - 11-05-2011

The function only returns the object ID the player is surfing on unfortunately. That means it only works for objects that the player is standing on, whilst the object is moving.

I've made a suggestion to improve the function here. I doubt it will get noticed though.


Re: Possible solution to vr / flip in the main world - Pedro - 11-05-2011

Ah, there're already guys supporting the idea, let's see what happens :p


Re: Possible solution to vr / flip in the main world - Pedro - 11-21-2011

I just had another 'perfect' idea to solve this problem. ahah

So supposedly we don't want to give to people unlimited health to their vehicles because DM'ers will obviously be against it. What if we could try to know if the player's being chased and / or running from a fighter?

GetVehicleDamageStatus, that function has five parameters: one of these is "tires". So I assume it's possible to know when the vehicle's tires are damaged or not.

Is there any other way to damage the vehicles' tires besides shooting them with a weapon? If not, you could completely give unlimited health to the vehicles.

It would have to be checking the vehicles' tires health and when it's down, the unlimited health would be disabled. Also, maybe you could increase to 30 per cent the damage that a weapon takes to the players who are in a car.

Another thing that possibly would be cool is when the unlimited vehicles' health is disabled, if the player keeps driving a car for more than 30 seconds and if it didn't take damage at all in general during that period, re-give the unlimited health.

It should have a text-draw informing about the vehicles' health situation.


Re: Possible solution to vr / flip in the main world - Jay - 11-22-2011

Okay I've wrote a new system for vehicle damage. This is how it works:

[Image: damage_areas.png]

If a car or motorbike (not plane/boat/helicopter) is outside any of the above areas, the vehicle health will not go down. It won't fully repair, it just won't take any more damage.

However, if it has a popped tyre, it will take damage.

It doesn't use a textdraw or reset after 30 seconds to avoid abuse. If a player gets a popped tyre and wants to stunt, they'll have to go to Pay N Spray or find another car.

I'm not going to announce this feature to avoid people abusing it. Please keep it secret.

Nice idea \o/
I've also fixed the crash bug :P


Re: Possible solution to vr / flip in the main world - MacSto - 11-22-2011

This should include a textdraw for admins showing the player is in a no-damage zone while /watch'ing them. I see lots of accidental bans!


Re: Possible solution to vr / flip in the main world - Jay - 11-22-2011

It's not really necessary. If an admin was spectating a player to check for vehicle damage cheats, if they use any commands on the player such as /v health or /nuke, the vehicle will take damage if they are not cheating.


Re: Possible solution to vr / flip in the main world - MacSto - 11-22-2011

If they are watching someone shoot the vehicle and use /dl noticing no vehicle health is being lost, they will ban. I know I would.