SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Back to NxLabs

NxLabs / Vintage Story

Projectile Tracker

MBy MrFastZombie

A QoL mod that automatically creates and deletes waypoints for projectiles you fire.

Description

The default waypoint icon, which is a silhouette of an arrow embedded in the ground. "Dude, where's my arrow?" The default waypoint icon, which is a silhouette of an arrow embedded in the ground.

 

Projectile Tracker automatically creates waypoints when your fired projectiles land and deletes them when they are either picked up or despawned. Note that this mod is required serverside when playing multiplayer. (Clients still need to download the mod to use it, it will not automatically download by default).

 

The default waypoint icon, which is a silhouette of an arrow embedded in the ground. How It Works The default waypoint icon, which is a silhouette of an arrow embedded in the ground.

When a projectile is spawned the server will detect when the projectile impacts and it will create the waypoint and send it to the player that fired the projectile. Upon despawn or pickup the waypoint will be removed if the player is online, or saved to a list if not and processed the next time the player comes online.

The default waypoint icon, which is a silhouette of an arrow embedded in the ground. Commands The default waypoint icon, which is a silhouette of an arrow embedded in the ground. 

/ptpurge -- Removes all of your PT waypoints. More specifically, it removes any waypoints that start with "Projectile ". So keep that in mind if you have any other waypoints named like that for some reason. 

/ptclearorphans -- Removes any PT waypoints that no longer have an associated entity, in case any don't get removed automatically.

/ptremovepending -- Can only be called by those with ban permissions. This command removes a player from the pending waypoint update list (which is used to update waypoints for players that were offline) when supplied a playerUID, or clears the list if the input is just "all". You probably won't need to do this but it is provided just in case. Examples: /ptremovepending all, /ptremovepending BxGR+8W4FOoB+arlMpjRxNq+

The default waypoint icon, which is a silhouette of an arrow embedded in the ground. Config The default waypoint icon, which is a silhouette of an arrow embedded in the ground.

"EnableProjectileTracker": true, -- Enables or (soft) disables the mod. When the mod is disabled this way, new waypoints will not be made for the player but old ones will still be removed as normal.
"allowWelcomeMessage": true, -- When joining a server, a welcome message will alert the user of waypoints that have been deleted since their last join. This setting controls if that is displayed.
"icon": "ptarrow", -- The waypoint icon. Accepts any icon name from the Waypoint icon list. By default, uses an icon (The default waypoint icon, which is a silhouette of an arrow embedded in the ground.) included with the mod. If you'd like an icon that is more precise, you can use "x" or "star1" instead. Invalid values will make it default to the circle icon.
"color": "#f9d0dc", -- The HEX code for the color of the waypoint. You should be able to get it from an online color picker. Do not forget the #.
"InjectModdedProjectiles": true,  -- If true: modded projectiles will be tracked. 
"projectileBlacklist": [] -- An array of item names that will not be tracked. On the serverside, this will disable those projectiles for everyone but on the client side it will prevent waypoints being made for that client. Projectile names that are being tracked are listed in the server-debug log, and you can find them by searching "Injecting entity". Example: ["arrow-crude", "bullet-lead"]

The default waypoint icon, which is a silhouette of an arrow embedded in the ground. A Note for Server Operators The default waypoint icon, which is a silhouette of an arrow embedded in the ground.

By default, this mod is not required on the client. This means that when a user joins your server, the mod will not be automatically downloaded. This is currently the intended behavior but if you wish to enable automatic downloading for convenience, you can change it in your server's install of the mod by opening the mod's zip file and editing modinfo.json so that "requiredOnClient": false, is changed to "requiredOnClient": true, . This will need to be done again whenever the mod is updated.

Read the full description on Vintage Story ModDB →

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.