Jump to content

Armored Train: 2.0.2

Fixed 1.11.0 1.12.0

rustplugins
rustplugins

Posted (edited)

Hello,

I am having an issue with Super PVx Info not detecting the Armored Train event’s PvP zone.

Installed versions:

Super PVx Info: 1.11.0

Armored Train: 2.0.2

TruePVE: 2.4.3

ZoneManager: 3.1.13

DynamicPVP: 5.1.0

Armored Train creates its dome correctly, but Super PVx Info continues to display PVE when a player enters the event area.

I checked the SuperPVxInfo source code. It supports CargoTrainEvent, Caravan, Convoy and Sputnik, but I could not find native support or enter/exit hook handling for Armored Train.

Could you please add native Armored Train support to Super PVx Info, similar to the existing Convoy and Sputnik integrations?

Thank you.

 

Edited by rustplugins
HunterZ

Posted

@Adem needs to add more info to Armored Train's API documentation. It only lists methods but not parameters or return values. I don't have enough info to know how to determine when a player is in an Armored Train PVP zone.

rustplugins

Posted (edited)

I have edited the file for you; I would greatly appreciate it if you could review it and include the changes in the next update. Best regards.How can I send you the CS file?

 

Edited by rustplugins
HunterZ

Posted (edited)

You can DM it to my discord, which is linked in my profile

Edited by HunterZ
HunterZ

Posted

Changed Status from Pending to Work in Progress

Changed Fixed In to Next Version

HunterZ

Posted

Thanks! 

You tested this on your server? 

What is the reason for calling the end logic for `OnArmoredTrainStartMoving`? I don't know much about how the Armored Train plugin works - is it only a PvP event while the train is stopped?

rustplugins

Posted

Yes, I tested it on my server and it worked correctly. The Super PVx Info HUD now switches to PvP when a player enters the Armored Train zone and returns to PvE when that zone disappears.

`OnArmoredTrainStartMoving` does not represent the end of the entire Armored Train event. I only use it to end/clear the Super PVx Info PvP bubble.

From what I found in the Armored Train code, the event zone is created in `OnTrainFullStop()`. When the train starts moving, `StartMoving()` calls `ZoneController.TryDeleteZone()`.

Deleting the zone controller does not appear to call `OnTriggerExit` for every player who was inside it. This means `OnPlayerExitArmoredTrain` may not fire for those players, leaving their Super PVx Info state/HUD stuck in PvP.

Calling:

`EndPvpBubble(PvpBubbleTypes.ArmoredTrain)`

from `OnArmoredTrainStartMoving` clears that stale state when the stationary PvP zone is removed. The Armored Train event itself continues while the train is moving; only its stopped PvP-zone phase ends.

`OnArmoredTrainEventStop` is kept as final cleanup when the entire event ends.
 

HunterZ

Posted

Changed Status from Work in Progress to Fixed

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.9m
Total downloads
Customers
11.9k
Customers served
Files Sold
169k
Total sales
Payments
3.7m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.