mirror of
https://github.com/MathiasLui/CSGO-Projects.git
synced 2025-05-06 22:01:18 +00:00

* Adjusted help window * Moved all settings that get saved in a file into a single window in the Edit menu * Add NAV area support and Z coordinate * Add weapon and NAV info boxes * Changed copying coordinates to include the setpos_exact command for ease of use * Settings are now saved and loaded * Add map scale factor override and X/Y offset * Removed ability to hide right click/left click circles * Add various summaries * Add OverwriteMapping class as an overwrite object for a map, that gets loaded from the settings and applied to each map when loading them * Add Associated area to map points and Z height
45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Shared.Models
|
|
{
|
|
[Flags]
|
|
public enum HidingSpotAttribute
|
|
{
|
|
IN_COVER = 0x01, // In a corner with good hard cover nearby
|
|
GOOD_SNIPER_SPOT = 0x02, // Had at least one decent sniping corridor
|
|
IDEAL_SNIPER_SPOT = 0x04, // Can see either very far, or a large area, or both
|
|
EXPOSED = 0x08 // Spot in the open, usually on a ledge or cliff
|
|
}
|
|
|
|
public class NavHidingSpot
|
|
{
|
|
public NavHidingSpot() { /* Do nothing */ }
|
|
|
|
public NavHidingSpot(uint navVersion, System.IO.BinaryReader reader)
|
|
{
|
|
this.Parse(navVersion, reader);
|
|
}
|
|
|
|
public void Parse(uint navVersion, System.IO.BinaryReader reader)
|
|
{
|
|
if(navVersion >= 2)
|
|
this.ID = reader.ReadUInt32();
|
|
|
|
if (navVersion >= 1)
|
|
this.Position = new Vector3(reader);
|
|
|
|
if (navVersion >= 2)
|
|
this.Attributes = reader.ReadByte();
|
|
}
|
|
|
|
public uint ID { get; set; }
|
|
|
|
public Vector3? Position { get; set; }
|
|
|
|
public byte Attributes { get; set; }
|
|
}
|
|
}
|