0xDizzle / SOLS-RPG

Roleplay Server for San Andreas: Multiplayer 0.3.DL
https://sols.gg
6 stars 0 forks source link

GTA:SA Burglary System for SA-MP #445

Open 0xDizzle opened 4 months ago

0xDizzle commented 4 months ago

What's needed?

Note: Only 1 player should be able to rob a specific house at a time, so we'll need something like HouseBeingRobbed[houseid] to exclude such from the loop when assigning a house when players start the burglar mission._

Note 2: Try to avoid using commands to give it that "single-player" feel, use keys instead where possible.

VIDEO: https://www.youtube.com/watch?v=e7Ua2NE8j2Y

How it's going to work?

0x8FAB commented 4 months ago

Note so I don't forget: IC/admin jail logic not implemented. You will have to do that when you merge it with the gamemode.

0xDizzle commented 4 months ago

Yeah no probs I forgot to mention that I'll handle that

0x8FAB commented 4 months ago

These are the things that you have to do when you merge the code:

I'm going to add a progress bar for testing purposes. The variable will be PlayerData[playerid][burgNoise]. Its value will be calculated using the player's velocity while inside the house.

0x8FAB commented 4 months ago

In addition to the list above, there are some oddities that I am currently unable to resolve.

* \ * If a checkpoint is already set it will use the radius of that checkpoint instead of the new one.<br * />

These should not have an impact on functionality. I will continue to investigate.

EDIT (02-MARCH-2024): These issues were fixed. (See comment below.)

0xDizzle commented 4 months ago

Looking good so far!

Just a note: We need /empty/ house interiors for the system to work properly, so we can map our own objects that can be stolen. The default GTA:SA interiors are mostly 1 big object with all the furniture attached to it so it can't be removed by using RemoveBuildingForPlayer.

I've prepared a list of small and medium interiors that are completely empty below, would be great if you could use these co-ordinates: https://pastebin.com/NNpGckma

0x8FAB commented 4 months ago

Here are the changes since your last test run:

There are probably a few other things I forgot to mention.

0xDizzle commented 4 months ago

Amazing job ^

0x8FAB commented 4 months ago

So nearly done with the fundamentals.

I'll keep commenting here with what I've changed until it's merged.

0x8FAB commented 4 months ago