Jump to content

microbe

Member
  • Content Count

    16
  • Joined

  • Last visited

  • Medals

Community Reputation

12 Good

About microbe

  • Rank
    Private First Class

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. The system I want to do is more like damage emulation, I have to do everything at the SQF level.
  2. It looks like a clue to solving my problems. I'll try. Thanks!
  3. I am trying to develop a system of wear and breakdowns of component parts of cars. Two examples I have difficulties with at the moment. 1. Transmission damage. It is necessary that the gearbox could not shift above a certain gear. How to determine the moment of switching? 2. Engine damage. It is necessary that the engine RPM can not exceed a certain value. How to determine current engine's RPM? I thought that such things could be realized because I noticed that in some cars there is a tachometer on the dashboard that displays the current engine RPM, as well as an indicator that shows the current gear: I studied this article, relying on the fact that it would help me understand how to do what I need, but without success.
  4. Thanks for the answer. Then i have another question. This is offtopic, but i do not know where to search. I'm studying extensions development, but I cannot understand how to get data i need from the game engine. I would at least know what keywords i need to google. Thanks!
  5. I use that MySQL-function on my RP-project's MySQL-server to get BEGUID from SteamID on the fly. DELIMITER $$ -- -- Create function `beguid` -- CREATE DEFINER = 'root'@'localhost' FUNCTION beguid(_playerid bigint UNSIGNED) RETURNS varchar(32) CHARSET latin1 DETERMINISTIC BEGIN DECLARE _temp text CHARSET ascii; DECLARE _i int; SET _temp = ""; SET _i = 0; WHILE _i < 8 DO SET _temp = CONCAT(_temp, CHAR(_playerid & 0xFF)); SET _playerid = _playerid >> 8; SET _i = _i + 1; END WHILE; RETURN MD5(CONCAT("BE", _temp)); END $$ Example: mysql> select beguid(76532298015716211); +----------------------------------+ | beguid(76532298015716211) | +----------------------------------+ | f276e058bbaaff85d23070c9bd43e2aa | +----------------------------------+
  6. What data can I extract from the engine that are not available in SQF? For example, how can I get the client's ip-address on the server side?
  7. Yes, I need to invent similar complicated workarounds. But still not get any work solution. I also wrote about the problem on the bug tracker (https://feedback.bistudio.com/T127825), see what the developers will answer.
  8. Yes, but it only works with buildings. You can forget about the buildings, I have no problems with them, I am interested in other destructible objects of the map - fences, walls, lamps etc.
  9. Yes it works on buildings, but does not work with other necessary objects: fences, walls, lampposts, telephone booths, etc.
  10. This method I also tried, it does not work. It seems to me that at the moment there is no beautiful way to realize this. Now I'm trying to implement the substitution of all map objects with their copies. The Altis map contains more than 1.7 millions of terrain objects, but most of them indestructible or have not enough large monetary value in real life to take them into account. After filtering such objects, the list is significantly reduced. This method requires storing this list of classes in some way and checking against it the destroyed objects.
  11. Hmm... On what objects does it work? For me again works not on all objects, only for those, which have been mentioned earlier.
  12. Yes, I tried, but the events handlers do not attach to the map objects. If attach event handler to player's vehicle, the object returns also as objNull. So far, I see the only way around this limitation is to remove all the map objects I need and replace them with their copies. Then i may use EpeContact events. But not all map objects have class in config + there is a question of productivity.
  13. Yes, i also use this command and I place all my hopes on it. But the problems still remain: How to identify a broken object if an object that was broken earlier is located nearby? How to identify a broken object, if other breakdowns occurred simultaneously by another players nearby?
  14. Thanks for the answer! I know about this event. But the problem is that the handler must be attached to the object itself, not to the player's vehicle. Hence the problems: it is impossible to attach event handlers to map objects (the command addEventHandler returns -1); it is necessary to attach the handler to each object of the map, the number of which is very large.
  15. My main task is to register the facts of the map objects damages, commited by the players. It is necessary for my life-project to fine players for breakdowns of the objects of the environment (fences, road signs, trees, lampposts, etc.). The most correct decision in my opinion is to use the events "EpeContact*", but this method has big drawback - almost all objects with which a contact occurs are not available in the "_this select 1", because the value is objNull. Attached event handlers Example 1 Produce an action (in-game screenshot): Watch RPT-log: 12:41:37 "EpeContactStart: [R Alpha 1-1:1 (playerName),<NULL-object>,"""","""",0]" 12:41:37 "EpeContact: [R Alpha 1-1:1 (playerName),<NULL-object>,"""","""",32.3208]" 12:41:37 "EpeContact: [R Alpha 1-1:1 (playerName),<NULL-object>,"""","""",668.879]" 12:41:37 "EpeContactEnd: [R Alpha 1-1:1 (playerName),<NULL-object>,"""","""",0]" Example 2 Produce an action (in-game screenshot): Watch RPT-log: 12:48:13 "EpeContactStart: [R Alpha 1-1:1 (playerName),26f7aec9600# 1121126: lampstreet_small_f.p3d,"""","""",0]" 12:48:13 "EpeContact: [R Alpha 1-1:1 (playerName),26f7aec9600# 1121126: lampstreet_small_f.p3d,"""","""",0]" 12:48:13 "EpeContact: [R Alpha 1-1:1 (playerName),26f7aec9600# 1121126: lampstreet_small_f.p3d,"""","""",0]" 12:48:13 "EpeContact: [R Alpha 1-1:1 (playerName),26f7aec9600# 1121126: lampstreet_small_f.p3d,"""","""",71.3098]" 12:48:13 "EpeContact: [R Alpha 1-1:1 (playerName),26f7aec9600# 1121126: lampstreet_small_f.p3d,"""","""",154.578]" 12:48:13 "EpeContactEnd: [R Alpha 1-1:1 (playerName),26f7aec9600# 1121126: lampstreet_small_f.p3d,"""","""",0]" -------------------------------------------------------------------------------------------------------------------------------------- But there are very few such objects, almost all are returned as objNull. Question 1: why objects return as objNull? Question 2: Is it possible to somehow fix or work around this?
×