Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7cd4dac909 | |||
| 4aaba03852 |
+1
-1
Submodule assets updated: 10a611659d...1e7adc749e
@@ -24,7 +24,6 @@ public:
|
|||||||
private:
|
private:
|
||||||
Octree<EntityAABB>* m_Octree;
|
Octree<EntityAABB>* m_Octree;
|
||||||
std::vector<EntityAABB> m_OctreeResult;
|
std::vector<EntityAABB> m_OctreeResult;
|
||||||
std::unordered_map<EntityWrapper, glm::vec3> m_PrevPositions;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
#ifndef EAmmoPickup_h__
|
|
||||||
#define EAmmoPickup_h__
|
|
||||||
|
|
||||||
#include "EventBroker.h"
|
|
||||||
#include "../Core/EntityWrapper.h"
|
|
||||||
|
|
||||||
namespace Events
|
|
||||||
{
|
|
||||||
|
|
||||||
struct AmmoPickup : Event
|
|
||||||
{
|
|
||||||
EntityWrapper Player;
|
|
||||||
int AmmoGain;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
#ifndef EPlayerHealthPickup_h__
|
|
||||||
#define EPlayerHealthPickup_h__
|
|
||||||
|
|
||||||
#include "EventBroker.h"
|
|
||||||
#include "../Core/EntityWrapper.h"
|
|
||||||
|
|
||||||
namespace Events
|
|
||||||
{
|
|
||||||
|
|
||||||
struct PlayerHealthPickup : Event
|
|
||||||
{
|
|
||||||
EntityWrapper Player;
|
|
||||||
double HealthAmount;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#ifndef EWin_h__
|
|
||||||
#define EWin_h__
|
|
||||||
|
|
||||||
#include "EventBroker.h"
|
|
||||||
#include "../Core/Entity.h"
|
|
||||||
#include "Engine/GLM.h"
|
|
||||||
|
|
||||||
namespace Events
|
|
||||||
{
|
|
||||||
|
|
||||||
//triggers when a team has captured all capturePoints
|
|
||||||
struct Win : Event
|
|
||||||
{
|
|
||||||
//can be 0 = none, 1,2
|
|
||||||
int TeamThatWon;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
#ifndef EntitySystem_h__
|
||||||
|
#define EntitySystem_h__
|
||||||
|
|
||||||
|
#include "World.h"
|
||||||
|
#include "SystemPipeline.h"
|
||||||
|
|
||||||
|
// An "EntitySystem" is defined as the combination of a World with a SystemPipeline
|
||||||
|
template <typename WorldType>
|
||||||
|
class EntitySystem : public WorldType, public SystemPipeline
|
||||||
|
{
|
||||||
|
static_assert(std::is_base_of<World, WorldType>::value, "WorldType must inherit from World");
|
||||||
|
public:
|
||||||
|
EntitySystem(EventBroker* eventBroker, bool isClient, bool isServer)
|
||||||
|
: WorldType(eventBroker)
|
||||||
|
, SystemPipeline(this, eventBroker, isClient, isServer)
|
||||||
|
{ }
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -29,22 +29,16 @@ struct EntityWrapper
|
|||||||
EntityWrapper Parent();
|
EntityWrapper Parent();
|
||||||
EntityWrapper FirstChildByName(const std::string& name);
|
EntityWrapper FirstChildByName(const std::string& name);
|
||||||
EntityWrapper FirstParentWithComponent(const std::string& componentType);
|
EntityWrapper FirstParentWithComponent(const std::string& componentType);
|
||||||
EntityWrapper Clone(EntityWrapper parent = EntityWrapper::Invalid);
|
|
||||||
std::vector<EntityWrapper> ChildrenWithComponent(const std::string& componentType);
|
|
||||||
void DeleteChildren();
|
|
||||||
bool IsChildOf(EntityWrapper potentialParent);
|
bool IsChildOf(EntityWrapper potentialParent);
|
||||||
bool Valid() const;
|
bool Valid() const;
|
||||||
|
|
||||||
ComponentWrapper operator[](const char* componentName);
|
ComponentWrapper operator[](const char* componentName);
|
||||||
ComponentWrapper operator[](const std::string& componentName);
|
|
||||||
bool operator==(const EntityWrapper& e) const;
|
bool operator==(const EntityWrapper& e) const;
|
||||||
bool operator!=(const EntityWrapper& e) const;
|
bool operator!=(const EntityWrapper& e) const;
|
||||||
explicit operator EntityID() const;
|
explicit operator EntityID() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
EntityWrapper firstChildByNameRecursive(const std::string& name, EntityID parent);
|
EntityWrapper firstChildByNameRecursive(const std::string& name, EntityID parent);
|
||||||
EntityWrapper cloneRecursive(EntityWrapper entity, EntityWrapper parent);
|
|
||||||
void childrenWithComponentRecursive(const std::string& componentType, EntityWrapper& entity, std::vector<EntityWrapper>& childrenWithComponent);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace std
|
namespace std
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ protected:
|
|||||||
|
|
||||||
const std::string m_ComponentType;
|
const std::string m_ComponentType;
|
||||||
|
|
||||||
virtual void UpdateComponent(EntityWrapper& entity, ComponentWrapper& component, double dt) = 0;
|
virtual void UpdateComponent(EntityWrapper& entity, ComponentWrapper& cPlayer, double dt) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ImpureSystem : public virtual System
|
class ImpureSystem : public virtual System
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ public:
|
|||||||
// Change the parent of an entity
|
// Change the parent of an entity
|
||||||
void SetParent(EntityID entity, EntityID parent);
|
void SetParent(EntityID entity, EntityID parent);
|
||||||
// Get children of an entity
|
// Get children of an entity
|
||||||
const std::pair<std::unordered_multimap<EntityID, EntityID>::const_iterator, std::unordered_multimap<EntityID, EntityID>::const_iterator> GetDirectChildren(EntityID entity);
|
const std::pair<std::unordered_multimap<EntityID, EntityID>::const_iterator, std::unordered_multimap<EntityID, EntityID>::const_iterator> GetChildren(EntityID entity);
|
||||||
// Get all component pools
|
// Get all component pools
|
||||||
const std::unordered_map<std::string, ComponentPool*>& GetComponentPools() const { return m_ComponentPools; }
|
const std::unordered_map<std::string, ComponentPool*>& GetComponentPools() const { return m_ComponentPools; }
|
||||||
// Get the entity children map
|
// Get the entity children map
|
||||||
|
|||||||
@@ -73,12 +73,6 @@ public:
|
|||||||
// Called when the user means to rename an entity.
|
// Called when the user means to rename an entity.
|
||||||
typedef std::function<void(EntityWrapper, const std::string&)> OnEntityChangeName_t;
|
typedef std::function<void(EntityWrapper, const std::string&)> OnEntityChangeName_t;
|
||||||
void SetEntityChangeNameCallback(OnEntityChangeName_t f) { m_OnEntityChangeName = f; }
|
void SetEntityChangeNameCallback(OnEntityChangeName_t f) { m_OnEntityChangeName = f; }
|
||||||
// Called when the user pastes an entity previously "copied"
|
|
||||||
// @param EntityWrapper The entity to copy
|
|
||||||
// @param EntityWrapper The entity to parent the new copy to
|
|
||||||
// @return The new copy of the entity
|
|
||||||
typedef std::function<EntityWrapper(EntityWrapper, EntityWrapper)> OnEntityPaste_t;
|
|
||||||
void SetEntityPasteCallback(OnEntityPaste_t f) { m_OnEntityPaste = f; }
|
|
||||||
// Called when the user means to attach a new component to an entity.
|
// Called when the user means to attach a new component to an entity.
|
||||||
typedef std::function<void(EntityWrapper, const std::string&)> OnComponentAttach_t;
|
typedef std::function<void(EntityWrapper, const std::string&)> OnComponentAttach_t;
|
||||||
void SetComponentAttachCallback(OnComponentAttach_t f) { m_OnComponentAttach = f; }
|
void SetComponentAttachCallback(OnComponentAttach_t f) { m_OnComponentAttach = f; }
|
||||||
@@ -117,7 +111,6 @@ private:
|
|||||||
std::string m_DroppedFile = "";
|
std::string m_DroppedFile = "";
|
||||||
bool m_Paused = false;
|
bool m_Paused = false;
|
||||||
bool m_MouseLocked = false;
|
bool m_MouseLocked = false;
|
||||||
EntityWrapper m_CopyTarget = EntityWrapper::Invalid;
|
|
||||||
|
|
||||||
// Callbacks
|
// Callbacks
|
||||||
OnEntitySelectedCallback_t m_OnEntitySelected = nullptr;
|
OnEntitySelectedCallback_t m_OnEntitySelected = nullptr;
|
||||||
@@ -131,7 +124,6 @@ private:
|
|||||||
OnComponentDelete_t m_OnComponentDelete = nullptr;
|
OnComponentDelete_t m_OnComponentDelete = nullptr;
|
||||||
OnWidgetMode_t m_OnWidgetMode = nullptr;
|
OnWidgetMode_t m_OnWidgetMode = nullptr;
|
||||||
OnWidgetSpace_t m_OnWidgetSpace = nullptr;
|
OnWidgetSpace_t m_OnWidgetSpace = nullptr;
|
||||||
OnEntityPaste_t m_OnEntityPaste = nullptr;
|
|
||||||
|
|
||||||
// Events
|
// Events
|
||||||
EventRelay<EditorGUI, Events::KeyDown> m_EKeyDown;
|
EventRelay<EditorGUI, Events::KeyDown> m_EKeyDown;
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ private:
|
|||||||
void OnEntityDelete(EntityWrapper entity);
|
void OnEntityDelete(EntityWrapper entity);
|
||||||
void OnEntityChangeParent(EntityWrapper entity, EntityWrapper parent);
|
void OnEntityChangeParent(EntityWrapper entity, EntityWrapper parent);
|
||||||
void OnEntityChangeName(EntityWrapper entity, const std::string& name);
|
void OnEntityChangeName(EntityWrapper entity, const std::string& name);
|
||||||
EntityWrapper OnEntityPaste(EntityWrapper entityToCopy, EntityWrapper parent);
|
|
||||||
void OnComponentAttach(EntityWrapper entity, const std::string& componentType);
|
void OnComponentAttach(EntityWrapper entity, const std::string& componentType);
|
||||||
void OnComponentDelete(EntityWrapper entity, const std::string& componentType);
|
void OnComponentDelete(EntityWrapper entity, const std::string& componentType);
|
||||||
void OnWidgetSpace(EditorGUI::WidgetSpace widgetSpace);
|
void OnWidgetSpace(EditorGUI::WidgetSpace widgetSpace);
|
||||||
|
|||||||
@@ -19,26 +19,11 @@
|
|||||||
#include "Core/World.h"
|
#include "Core/World.h"
|
||||||
#include "Core/EventBroker.h"
|
#include "Core/EventBroker.h"
|
||||||
#include "Core/ConfigFile.h"
|
#include "Core/ConfigFile.h"
|
||||||
#include "Core/EPlayerDeath.h"
|
|
||||||
#include "Input/EInputCommand.h"
|
#include "Input/EInputCommand.h"
|
||||||
#include "Core/EPlayerDamage.h"
|
#include "Core/EPlayerDamage.h"
|
||||||
#include "../Game/Events/EDoubleJump.h"
|
|
||||||
#include "Network/EInterpolate.h"
|
#include "Network/EInterpolate.h"
|
||||||
#include "Network/SnapshotFilter.h"
|
#include "Network/SnapshotFilter.h"
|
||||||
#include "Core/EPlayerSpawned.h"
|
#include "Core/EPlayerSpawned.h"
|
||||||
#include "Network/ESearchForServers.h"
|
|
||||||
|
|
||||||
struct ServerInfo
|
|
||||||
{
|
|
||||||
ServerInfo(std::string a, int b, std::string c, int d)
|
|
||||||
{
|
|
||||||
Address = a; Port = b; Name = c; PlayersConnected = d;
|
|
||||||
}
|
|
||||||
std::string Address = "";
|
|
||||||
int Port = 0;
|
|
||||||
std::string Name = "";
|
|
||||||
int PlayersConnected = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
class Client : public Network
|
class Client : public Network
|
||||||
{
|
{
|
||||||
@@ -49,9 +34,7 @@ public:
|
|||||||
|
|
||||||
void Connect(std::string address, int port);
|
void Connect(std::string address, int port);
|
||||||
void Update() override;
|
void Update() override;
|
||||||
private:
|
|
||||||
UDPClient m_Unreliable;
|
|
||||||
TCPClient m_Reliable;
|
|
||||||
std::vector<Events::PlayerSpawned> m_PlayerSpawnEvents;
|
std::vector<Events::PlayerSpawned> m_PlayerSpawnEvents;
|
||||||
void parseSpawnEvents();
|
void parseSpawnEvents();
|
||||||
// Save for children
|
// Save for children
|
||||||
@@ -99,13 +82,10 @@ private:
|
|||||||
void parseTCPConnect(Packet& packet);
|
void parseTCPConnect(Packet& packet);
|
||||||
void parsePlayerConnected(Packet& packet);
|
void parsePlayerConnected(Packet& packet);
|
||||||
void parsePing();
|
void parsePing();
|
||||||
void parseServerlist(Packet& packet);
|
|
||||||
void parseKick();
|
void parseKick();
|
||||||
void parsePlayersSpawned(Packet& packet);
|
void parsePlayersSpawned(Packet& packet);
|
||||||
void parseEntityDeletion(Packet& packet);
|
void parseEntityDeletion(Packet& packet);
|
||||||
void parsePlayerDamage(Packet& packet);
|
|
||||||
void parseComponentDeletion(Packet& packet);
|
void parseComponentDeletion(Packet& packet);
|
||||||
void parseDoubleJump(Packet& packet);
|
|
||||||
void InterpolateFields(Packet & packet, const ComponentInfo & componentInfo, const EntityID & entityID, const std::string & componentType);
|
void InterpolateFields(Packet & packet, const ComponentInfo & componentInfo, const EntityID & entityID, const std::string & componentType);
|
||||||
void parseSnapshot(Packet& packet);
|
void parseSnapshot(Packet& packet);
|
||||||
void identifyPacketLoss();
|
void identifyPacketLoss();
|
||||||
@@ -114,7 +94,6 @@ private:
|
|||||||
void sendInputCommands();
|
void sendInputCommands();
|
||||||
void sendLocalPlayerTransform();
|
void sendLocalPlayerTransform();
|
||||||
void becomePlayer();
|
void becomePlayer();
|
||||||
void displayServerlist();
|
|
||||||
// Mapping Logic
|
// Mapping Logic
|
||||||
// Returns if local EntityID exist in map
|
// Returns if local EntityID exist in map
|
||||||
bool clientServerMapsHasEntity(EntityID clientEntityID);
|
bool clientServerMapsHasEntity(EntityID clientEntityID);
|
||||||
@@ -130,15 +109,10 @@ private:
|
|||||||
bool OnPlayerDamage(const Events::PlayerDamage& e);
|
bool OnPlayerDamage(const Events::PlayerDamage& e);
|
||||||
EventRelay<Client, Events::PlayerSpawned> m_EPlayerSpawned;
|
EventRelay<Client, Events::PlayerSpawned> m_EPlayerSpawned;
|
||||||
bool OnPlayerSpawned(const Events::PlayerSpawned& e);
|
bool OnPlayerSpawned(const Events::PlayerSpawned& e);
|
||||||
EventRelay< Client, Events::SearchForServers> m_ESearchForServers;
|
void parsePlayerDamage(Packet& packet);
|
||||||
EventRelay<Client, Events::DoubleJump> m_EDoubleJump;
|
private:
|
||||||
bool OnDoubleJump(Events::DoubleJump & e);
|
UDPClient m_Unreliable;
|
||||||
bool OnSearchForServers(const Events::SearchForServers& e);
|
TCPClient m_Reliable;
|
||||||
UDPClient m_ServerlistRequest;
|
|
||||||
std::vector<ServerInfo> m_Serverlist;
|
|
||||||
bool m_SearchingForServers = false;
|
|
||||||
std::clock_t m_StartSearchTime;
|
|
||||||
double m_SearchingTime = 2000; // Config I guess
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
#ifndef Events_SearchForServers_h__
|
|
||||||
#define Events_SearchForServers_h__
|
|
||||||
|
|
||||||
#include "Core/Event.h"
|
|
||||||
|
|
||||||
namespace Events
|
|
||||||
{
|
|
||||||
|
|
||||||
struct SearchForServers : public Event { };
|
|
||||||
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
#ifndef HybridClient_h__
|
||||||
|
#define HybridClient_h__
|
||||||
|
|
||||||
|
class HybridClient
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
HybridClient();
|
||||||
|
~HybridClient();
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
#ifndef HybridServer_h__
|
||||||
|
#define HybridServer_h__
|
||||||
|
|
||||||
|
class HybridServer
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
HybridServer();
|
||||||
|
~HybridServer();
|
||||||
|
private:
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -19,8 +19,6 @@ enum class MessageType
|
|||||||
EntityDeleted,
|
EntityDeleted,
|
||||||
ComponentDeleted,
|
ComponentDeleted,
|
||||||
PlayerTransform,
|
PlayerTransform,
|
||||||
OnDoubleJump,
|
|
||||||
ServerlistRequest,
|
|
||||||
Invalid
|
Invalid
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -9,16 +9,13 @@ typedef unsigned int PacketID;
|
|||||||
class NetworkClient
|
class NetworkClient
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NetworkClient();
|
|
||||||
virtual ~NetworkClient();
|
|
||||||
virtual void Connect(std::string playerName, std::string address, int port) = 0;
|
virtual void Connect(std::string playerName, std::string address, int port) = 0;
|
||||||
virtual void Disconnect() = 0;
|
virtual void Disconnect() = 0;
|
||||||
virtual void Receive(Packet& packet) = 0;
|
virtual void Receive(Packet& packet) = 0;
|
||||||
virtual void Send(Packet & packet) = 0;
|
virtual void Send(Packet & packet) = 0;
|
||||||
virtual bool IsSocketAvailable() = 0;
|
virtual bool IsSocketAvailable() = 0;
|
||||||
protected:
|
protected:
|
||||||
char* m_ReadBuffer;
|
char m_ReadBuffer[BUFFERSIZE] = { 0 };
|
||||||
unsigned int m_BufferSize = BUFFERSIZE;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -10,15 +10,12 @@ typedef unsigned int PacketID;
|
|||||||
class NetworkServer
|
class NetworkServer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NetworkServer();
|
|
||||||
virtual ~NetworkServer();
|
|
||||||
virtual void AcceptNewConnections(int& nextPlayerID, std::map<PlayerID, PlayerDefinition>& connectedPlayers) = 0;
|
virtual void AcceptNewConnections(int& nextPlayerID, std::map<PlayerID, PlayerDefinition>& connectedPlayers) = 0;
|
||||||
virtual void Receive(Packet & packet, PlayerDefinition & playerDefinition) = 0;
|
virtual void Receive(Packet & packet, PlayerDefinition & playerDefinition) = 0;
|
||||||
virtual void Send(Packet & packet, PlayerDefinition & playerDefinition) = 0;
|
virtual void Send(Packet & packet, PlayerDefinition & playerDefinition) = 0;
|
||||||
virtual void Send(Packet & packet) = 0;
|
virtual void Send(Packet & packet) = 0;
|
||||||
protected:
|
protected:
|
||||||
char* m_ReadBuffer;
|
char m_ReadBuffer[BUFFERSIZE] = { 0 };
|
||||||
unsigned int m_BufferSize = BUFFERSIZE;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -17,7 +17,6 @@
|
|||||||
#include "Core/EPlayerDamage.h"
|
#include "Core/EPlayerDamage.h"
|
||||||
#include "Network/EPlayerDisconnected.h"
|
#include "Network/EPlayerDisconnected.h"
|
||||||
#include "Core/EPlayerSpawned.h"
|
#include "Core/EPlayerSpawned.h"
|
||||||
#include "../Game/Events/EDoubleJump.h"
|
|
||||||
#include "Core/EEntityDeleted.h"
|
#include "Core/EEntityDeleted.h"
|
||||||
#include "Core/EComponentDeleted.h"
|
#include "Core/EComponentDeleted.h"
|
||||||
|
|
||||||
@@ -33,7 +32,6 @@ private:
|
|||||||
// Network channels
|
// Network channels
|
||||||
TCPServer m_Reliable;
|
TCPServer m_Reliable;
|
||||||
UDPServer m_Unreliable;
|
UDPServer m_Unreliable;
|
||||||
UDPServer m_ServerlistRequest;
|
|
||||||
// dont forget to set these in the childrens receive logic
|
// dont forget to set these in the childrens receive logic
|
||||||
boost::asio::ip::address m_Address;
|
boost::asio::ip::address m_Address;
|
||||||
int m_Port = 27666;
|
int m_Port = 27666;
|
||||||
@@ -66,7 +64,6 @@ private:
|
|||||||
void reliableBroadcast(Packet& packet);
|
void reliableBroadcast(Packet& packet);
|
||||||
void unreliableBroadcast(Packet& packet);
|
void unreliableBroadcast(Packet& packet);
|
||||||
void sendSnapshot();
|
void sendSnapshot();
|
||||||
void addPlayersToPacket(Packet& packet, EntityID entityID);
|
|
||||||
void addChildrenToPacket(Packet& packet, EntityID entityID);
|
void addChildrenToPacket(Packet& packet, EntityID entityID);
|
||||||
void addInputCommandsToPacket(Packet& packet);
|
void addInputCommandsToPacket(Packet& packet);
|
||||||
void sendPing();
|
void sendPing();
|
||||||
@@ -81,11 +78,9 @@ private:
|
|||||||
void parseOnInputCommand(Packet& packet);
|
void parseOnInputCommand(Packet& packet);
|
||||||
void parseClientPing();
|
void parseClientPing();
|
||||||
void parsePing();
|
void parsePing();
|
||||||
bool parseDoubleJump(Packet& packet);
|
void parseUDPConnect(Packet & packet);
|
||||||
void parseUDPConnect(Packet& packet);
|
void parseTCPConnect(Packet & packet);
|
||||||
void parseTCPConnect(Packet& packet);
|
|
||||||
void parseDisconnect();
|
void parseDisconnect();
|
||||||
void parseServerlistRequest(boost::asio::ip::udp::endpoint endpoint);
|
|
||||||
bool shouldSendToClient(EntityWrapper childEntity);
|
bool shouldSendToClient(EntityWrapper childEntity);
|
||||||
|
|
||||||
// Debug event
|
// Debug event
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ private:
|
|||||||
boost::asio::ip::tcp::endpoint m_Endpoint;
|
boost::asio::ip::tcp::endpoint m_Endpoint;
|
||||||
boost::asio::io_service m_IOService;
|
boost::asio::io_service m_IOService;
|
||||||
std::unique_ptr<boost::asio::ip::tcp::socket> m_Socket;
|
std::unique_ptr<boost::asio::ip::tcp::socket> m_Socket;
|
||||||
size_t readBuffer();
|
size_t readBuffer(char* data);
|
||||||
PacketID m_SendPacketID = 0;
|
PacketID m_SendPacketID = 0;
|
||||||
bool m_IsConnected = false;
|
bool m_IsConnected = false;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -16,22 +16,16 @@ public:
|
|||||||
void Send(Packet & packet, PlayerDefinition & playerDefinition);
|
void Send(Packet & packet, PlayerDefinition & playerDefinition);
|
||||||
void Send(Packet & packet);
|
void Send(Packet & packet);
|
||||||
void Disconnect();
|
void Disconnect();
|
||||||
int Port() { return m_Port; }
|
|
||||||
std::string Address() { return m_Address; }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// TCP logic
|
// TCP logic
|
||||||
boost::asio::io_service m_IOService;
|
boost::asio::io_service m_IOService;
|
||||||
std::unique_ptr<boost::asio::ip::tcp::acceptor> acceptor;
|
std::unique_ptr<boost::asio::ip::tcp::acceptor> acceptor;
|
||||||
boost::shared_ptr<boost::asio::ip::tcp::socket> lastReceivedSocket;
|
boost::shared_ptr<boost::asio::ip::tcp::socket> lastReceivedSocket;
|
||||||
|
|
||||||
int readBuffer(PlayerDefinition& playerDefinition);
|
void handle_accept(boost::shared_ptr<boost::asio::ip::tcp::socket> socket,
|
||||||
PlayerID getPlayerIDFromEndpoint(const std::map<PlayerID, PlayerDefinition>& connectedPlayers,
|
int& nextPlayerID, std::map<PlayerID, PlayerDefinition>& connectedPlayers,
|
||||||
boost::asio::ip::address address, unsigned short port);
|
const boost::system::error_code& error);
|
||||||
int GetPort();
|
int readBuffer(char* data, PlayerDefinition& playerDefinition);
|
||||||
std::string GetAddress();
|
|
||||||
int m_Port = 0;
|
|
||||||
std::string m_Address = "";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -14,14 +14,13 @@ public:
|
|||||||
void Disconnect();
|
void Disconnect();
|
||||||
void Receive(Packet& packet);
|
void Receive(Packet& packet);
|
||||||
void Send(Packet & packet);
|
void Send(Packet & packet);
|
||||||
void Broadcast(Packet& packet, int port);
|
|
||||||
bool IsSocketAvailable();
|
bool IsSocketAvailable();
|
||||||
private:
|
private:
|
||||||
// Assio UDP logic
|
// Assio UDP logic
|
||||||
boost::asio::io_service m_IOService;
|
boost::asio::io_service m_IOService;
|
||||||
boost::asio::ip::udp::endpoint m_ReceiverEndpoint;
|
boost::asio::ip::udp::endpoint m_ReceiverEndpoint;
|
||||||
boost::shared_ptr<boost::asio::ip::udp::socket> m_Socket;
|
boost::shared_ptr<boost::asio::ip::udp::socket> m_Socket;
|
||||||
int readBuffer();
|
int readBuffer(char* data);
|
||||||
PacketID m_SendPacketID = 0;
|
PacketID m_SendPacketID = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -8,21 +8,18 @@ class UDPServer : public NetworkServer
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
UDPServer();
|
UDPServer();
|
||||||
UDPServer(int port);
|
|
||||||
~UDPServer();
|
~UDPServer();
|
||||||
void AcceptNewConnections(int& nextPlayerID, std::map<PlayerID, PlayerDefinition>& connectedPlayers);
|
void AcceptNewConnections(int& nextPlayerID, std::map<PlayerID, PlayerDefinition>& connectedPlayers);
|
||||||
void Receive(Packet & packet, PlayerDefinition & playerDefinition);
|
void Receive(Packet & packet, PlayerDefinition & playerDefinition);
|
||||||
void Send(Packet & packet, PlayerDefinition & playerDefinition);
|
void Send(Packet & packet, PlayerDefinition & playerDefinition);
|
||||||
void Send(Packet & packet);
|
void Send(Packet & packet);
|
||||||
void Send(Packet & packet, boost::asio::ip::udp::endpoint endpoint);
|
|
||||||
void Broadcast(Packet & packet, int port);
|
|
||||||
bool IsSocketAvailable();
|
bool IsSocketAvailable();
|
||||||
private:
|
private:
|
||||||
// UDP logic
|
// UDP logic
|
||||||
boost::asio::io_service m_IOService;
|
boost::asio::io_service m_IOService;
|
||||||
boost::asio::ip::udp::endpoint m_ReceiverEndpoint;
|
boost::asio::ip::udp::endpoint m_ReceiverEndpoint;
|
||||||
std::unique_ptr<boost::asio::ip::udp::socket> m_Socket;
|
std::unique_ptr<boost::asio::ip::udp::socket> m_Socket;
|
||||||
int readBuffer();
|
int readBuffer(char* data);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
#ifndef CubeMapPass_h__
|
|
||||||
#define CubeMapPass_h__
|
|
||||||
|
|
||||||
#include "IRenderer.h"
|
|
||||||
#include "ShaderProgram.h"
|
|
||||||
|
|
||||||
class CubeMapPass
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
CubeMapPass(IRenderer* renderer);
|
|
||||||
~CubeMapPass() { }
|
|
||||||
|
|
||||||
void LoadTextures(std::string input);
|
|
||||||
void FillCubeMap(glm::vec3 originPosition);
|
|
||||||
void GenerateCubeMapTexture();
|
|
||||||
|
|
||||||
//GLuint CubeMapTexture() const { return m_CubeMapTexture; }
|
|
||||||
GLuint m_CubeMapTexture = -1;
|
|
||||||
|
|
||||||
private:
|
|
||||||
IRenderer* m_Renderer;
|
|
||||||
std::string m_PreviusCubeMapTexture;
|
|
||||||
|
|
||||||
std::vector<Texture*> m_CubeMapTextures;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
class DrawBloomPass
|
class DrawBloomPass
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DrawBloomPass(IRenderer* renderer, ConfigFile* config);
|
DrawBloomPass(IRenderer* renderer /* ,Texture or finalpass*/ );
|
||||||
~DrawBloomPass() { }
|
~DrawBloomPass() { }
|
||||||
void InitializeTextures();
|
void InitializeTextures();
|
||||||
void InitializeFrameBuffers();
|
void InitializeFrameBuffers();
|
||||||
@@ -23,33 +23,26 @@ public:
|
|||||||
void FillGaussianBuffer(FrameBuffer* fb);
|
void FillGaussianBuffer(FrameBuffer* fb);
|
||||||
|
|
||||||
void Draw(GLuint texture);
|
void Draw(GLuint texture);
|
||||||
void ChangeQuality(int quality);
|
|
||||||
|
|
||||||
void OnWindowResize();
|
void OnWindowResize();
|
||||||
|
|
||||||
//Getters
|
//Getters
|
||||||
//Return the blurred result of the texture that was sent into draw
|
//Return the blurred result of the texture that was sent into draw
|
||||||
GLuint GaussianTexture() const {
|
GLuint GaussianTexture() const { return m_GaussianTexture_vert; }
|
||||||
if (m_Quality == 0) {
|
|
||||||
return m_BlackTexture->m_Texture;
|
|
||||||
} else {
|
|
||||||
return m_GaussianTexture_vert;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Texture* m_BlackTexture;
|
void GenerateTexture(GLuint* texture, GLenum wrapping, GLenum filtering, glm::vec2 dimensions, GLint internalFormat, GLint format, GLenum type) const;
|
||||||
|
|
||||||
|
Texture* m_WhiteTexture;
|
||||||
Model* m_ScreenQuad;
|
Model* m_ScreenQuad;
|
||||||
|
|
||||||
const IRenderer* m_Renderer;
|
const IRenderer* m_Renderer;
|
||||||
ConfigFile* m_Config;
|
|
||||||
//const LightCullingPass* m_LightCullingPass
|
//const LightCullingPass* m_LightCullingPass
|
||||||
int m_Iterations;
|
GLuint m_iterations = 9;
|
||||||
int m_Quality = 0;
|
|
||||||
|
|
||||||
GLuint m_GaussianTexture_horiz = 0;
|
GLuint m_GaussianTexture_horiz;
|
||||||
GLuint m_GaussianTexture_vert = 0;
|
GLuint m_GaussianTexture_vert;
|
||||||
|
|
||||||
FrameBuffer m_GaussianFrameBuffer_horiz;
|
FrameBuffer m_GaussianFrameBuffer_horiz;
|
||||||
FrameBuffer m_GaussianFrameBuffer_vert;
|
FrameBuffer m_GaussianFrameBuffer_vert;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ public:
|
|||||||
void InitializeFrameBuffers();
|
void InitializeFrameBuffers();
|
||||||
void InitializeShaderPrograms();
|
void InitializeShaderPrograms();
|
||||||
|
|
||||||
void Draw(GLuint sceneTexture, GLuint bloomTexture, GLfloat gamma, GLfloat exposure);
|
void Draw(GLuint sceneTexture, GLuint bloomTexture, GLuint sceneTextureLowRes, GLuint bloomTextureLowRes, GLfloat gamma, GLfloat exposure);
|
||||||
private:
|
private:
|
||||||
const IRenderer* m_Renderer;
|
const IRenderer* m_Renderer;
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
#include "IRenderer.h"
|
#include "IRenderer.h"
|
||||||
#include "DrawFinalPassState.h"
|
#include "DrawFinalPassState.h"
|
||||||
#include "LightCullingPass.h"
|
#include "LightCullingPass.h"
|
||||||
#include "CubeMapPass.h"
|
|
||||||
#include "SSAOPass.h"
|
|
||||||
#include "FrameBuffer.h"
|
#include "FrameBuffer.h"
|
||||||
#include "ShaderProgram.h"
|
#include "ShaderProgram.h"
|
||||||
#include "Util/UnorderedMapVec2.h"
|
#include "Util/UnorderedMapVec2.h"
|
||||||
@@ -15,28 +13,34 @@
|
|||||||
class DrawFinalPass
|
class DrawFinalPass
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DrawFinalPass(IRenderer* renderer, LightCullingPass* lightCullingPass, CubeMapPass* cubeMapPass, SSAOPass* ssaoPass);
|
DrawFinalPass(IRenderer* renderer, LightCullingPass* lightCullingPass);
|
||||||
~DrawFinalPass() { }
|
~DrawFinalPass() { }
|
||||||
void InitializeTextures();
|
void InitializeTextures();
|
||||||
void InitializeFrameBuffers();
|
void InitializeFrameBuffers();
|
||||||
void InitializeShaderPrograms();
|
void InitializeShaderPrograms();
|
||||||
void Draw(RenderScene& scene);
|
void Draw(RenderScene& scene, GLuint SSAOTexture);
|
||||||
void ClearBuffer();
|
void ClearBuffer();
|
||||||
void OnWindowResize();
|
void OnWindowResize();
|
||||||
|
|
||||||
//Return the texture that is used in later stages to apply the bloom effect
|
//Return the texture that is used in later stages to apply the bloom effect
|
||||||
GLuint BloomTexture() const { return m_BloomTexture; }
|
GLuint BloomTexture() const { return m_BloomTexture; }
|
||||||
|
GLuint BloomTextureLowRes() const { return m_BloomTextureLowRes; }
|
||||||
//Return the texture with diffuse and lighting of the scene.
|
//Return the texture with diffuse and lighting of the scene.
|
||||||
GLuint SceneTexture() const { return m_SceneTexture; }
|
GLuint SceneTexture() const { return m_SceneTexture; }
|
||||||
|
GLuint SceneTextureLowRes() const { return m_SceneTextureLowRes; }
|
||||||
//Return the framebuffer used in the scene rendering stage.
|
//Return the framebuffer used in the scene rendering stage.
|
||||||
FrameBuffer* FinalPassFrameBuffer() { return &m_FinalPassFrameBuffer; }
|
FrameBuffer* FinalPassFrameBuffer() { return &m_FinalPassFrameBuffer; }
|
||||||
|
FrameBuffer* FinalPassFrameBufferLowRes() { return &m_FinalPassFrameBufferLowRes; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void GenerateTexture(GLuint* texture, GLenum wrapping, GLenum filtering, glm::vec2 dimensions, GLint internalFormat, GLint format, GLenum type) const;
|
||||||
|
void GenerateMipMapTexture(GLuint* texture, GLenum wrapping, glm::vec2 dimensions, GLint format, GLenum type, GLint numMipMaps) const;
|
||||||
|
|
||||||
void DrawSprites(std::list<std::shared_ptr<RenderJob>>&jobs, RenderScene& scene);
|
void DrawSprites(std::list<std::shared_ptr<RenderJob>>&jobs, RenderScene& scene);
|
||||||
void DrawModelRenderQueues(std::list<std::shared_ptr<RenderJob>>& jobs, RenderScene& scene);
|
void DrawModelRenderQueues(std::list<std::shared_ptr<RenderJob>>& jobs, RenderScene& scene, GLuint SSAOTexture);
|
||||||
void DrawModelRenderQueuesWithShieldCheck(std::list<std::shared_ptr<RenderJob>>& jobs, RenderScene& scene);
|
void DrawShieldToStencilBuffer(std::list<std::shared_ptr<RenderJob>>& jobs, RenderScene& scene);
|
||||||
void DrawShieldedModelRenderQueue(std::list<std::shared_ptr<RenderJob>>& jobs, RenderScene& scene);
|
void DrawShieldedModelRenderQueue(std::list<std::shared_ptr<RenderJob>>& jobs, RenderScene& scene);
|
||||||
void DrawToDepthStencilBuffer(std::list<std::shared_ptr<RenderJob>>& jobs, RenderScene& scene);
|
void DrawToDepthBuffer(std::list<std::shared_ptr<RenderJob>>& jobs, RenderScene& scene);
|
||||||
|
|
||||||
void BindExplosionUniforms(GLuint shaderHandle, std::shared_ptr<ExplosionEffectJob>& job, RenderScene& scene);
|
void BindExplosionUniforms(GLuint shaderHandle, std::shared_ptr<ExplosionEffectJob>& job, RenderScene& scene);
|
||||||
void BindModelUniforms(GLuint shaderHandle, std::shared_ptr<ModelJob>& job, RenderScene& scene);
|
void BindModelUniforms(GLuint shaderHandle, std::shared_ptr<ModelJob>& job, RenderScene& scene);
|
||||||
@@ -51,47 +55,35 @@ private:
|
|||||||
Texture* m_ErrorTexture;
|
Texture* m_ErrorTexture;
|
||||||
|
|
||||||
FrameBuffer m_FinalPassFrameBuffer;
|
FrameBuffer m_FinalPassFrameBuffer;
|
||||||
FrameBuffer m_ShieldDepthFrameBuffer;
|
FrameBuffer m_FinalPassFrameBufferLowRes;
|
||||||
GLuint m_BloomTexture;
|
GLuint m_BloomTexture;
|
||||||
GLuint m_SceneTexture;
|
GLuint m_SceneTexture;
|
||||||
|
GLuint m_BloomTextureLowRes;
|
||||||
|
GLuint m_SceneTextureLowRes;
|
||||||
GLuint m_DepthBuffer;
|
GLuint m_DepthBuffer;
|
||||||
GLuint m_ShieldBuffer;
|
GLuint m_DepthBufferLowRes;
|
||||||
GLuint m_CubeMapTexture;
|
|
||||||
|
|
||||||
//maqke this component based i guess?
|
//maqke this component based i guess?
|
||||||
GLuint m_ShieldPixelRate = 16;
|
GLuint m_ShieldPixelRate = 16;
|
||||||
|
|
||||||
const IRenderer* m_Renderer;
|
const IRenderer* m_Renderer;
|
||||||
const LightCullingPass* m_LightCullingPass;
|
const LightCullingPass* m_LightCullingPass;
|
||||||
const CubeMapPass* m_CubeMapPass;
|
|
||||||
const SSAOPass* m_SSAOPass;
|
|
||||||
|
|
||||||
ShaderProgram* m_ForwardPlusProgram;
|
ShaderProgram* m_ForwardPlusProgram;
|
||||||
ShaderProgram* m_ExplosionEffectProgram;
|
ShaderProgram* m_ExplosionEffectProgram;
|
||||||
ShaderProgram* m_ExplosionEffectSplatMapProgram;
|
ShaderProgram* m_ExplosionEffectSplatMapProgram;
|
||||||
ShaderProgram* m_SpriteProgram;
|
ShaderProgram* m_SpriteProgram;
|
||||||
ShaderProgram* m_ForwardPlusSplatMapProgram;
|
ShaderProgram* m_ForwardPlusSplatMapProgram;
|
||||||
ShaderProgram* m_FillDepthStencilBufferProgram;
|
ShaderProgram* m_ShieldToStencilProgram;
|
||||||
|
ShaderProgram* m_FillDepthBufferProgram;
|
||||||
ShaderProgram* m_ForwardPlusShieldCheckProgram;
|
|
||||||
ShaderProgram* m_ExplosionEffectShieldCheckProgram;
|
|
||||||
ShaderProgram* m_ExplosionEffectSplatMapShieldCheckProgram;
|
|
||||||
ShaderProgram* m_SpriteShieldCheckProgram;
|
|
||||||
ShaderProgram* m_ForwardPlusSplatMapShieldCheckProgram;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ShaderProgram* m_ForwardPlusSkinnedProgram;
|
ShaderProgram* m_ForwardPlusSkinnedProgram;
|
||||||
ShaderProgram* m_ExplosionEffectSkinnedProgram;
|
ShaderProgram* m_ExplosionEffectSkinnedProgram;
|
||||||
ShaderProgram* m_ExplosionEffectSplatMapSkinnedProgram;
|
ShaderProgram* m_ExplosionEffectSplatMapSkinnedProgram;
|
||||||
ShaderProgram* m_ForwardPlusSplatMapSkinnedProgram;
|
ShaderProgram* m_ForwardPlusSplatMapSkinnedProgram;
|
||||||
ShaderProgram* m_FillDepthStencilBufferSkinnedProgram;
|
ShaderProgram* m_ShieldToStencilSkinnedProgram;
|
||||||
|
ShaderProgram* m_FillDepthBufferSkinnedProgram;
|
||||||
ShaderProgram* m_ForwardPlusSkinnedShieldCheckProgram;
|
|
||||||
ShaderProgram* m_ExplosionEffectSkinnedShieldCheckProgram;
|
|
||||||
ShaderProgram* m_ExplosionEffectSplatMapSkinnedShieldCheckProgram;
|
|
||||||
ShaderProgram* m_ForwardPlusSplatMapSkinnedShieldCheckProgram;
|
|
||||||
ShaderProgram* m_FillDepthBufferSkinnedShieldCheckProgram;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -15,8 +15,8 @@
|
|||||||
|
|
||||||
struct ExplosionEffectJob : ModelJob
|
struct ExplosionEffectJob : ModelJob
|
||||||
{
|
{
|
||||||
ExplosionEffectJob(ComponentWrapper explosionEffectComponent, ::Model* model, Camera* camera, glm::mat4 matrix, ::RawModel::MaterialProperties matGroup, ComponentWrapper modelComponent, ::World* world, glm::vec4 fillColor, float fillPercentage, bool isShielded)
|
ExplosionEffectJob(ComponentWrapper explosionEffectComponent, ::Model* model, Camera* camera, glm::mat4 matrix, ::RawModel::MaterialProperties matGroup, ComponentWrapper modelComponent, ::World* world, glm::vec4 fillColor, float fillPercentage)
|
||||||
: ModelJob(model, camera, matrix, matGroup, modelComponent, world, fillColor, fillPercentage, isShielded)
|
: ModelJob(model, camera, matrix, matGroup, modelComponent, world, fillColor, fillPercentage)
|
||||||
{
|
{
|
||||||
ExplosionOrigin = (glm::vec3)explosionEffectComponent["ExplosionOrigin"];
|
ExplosionOrigin = (glm::vec3)explosionEffectComponent["ExplosionOrigin"];
|
||||||
TimeSinceDeath = (double)explosionEffectComponent["TimeSinceDeath"];
|
TimeSinceDeath = (double)explosionEffectComponent["TimeSinceDeath"];
|
||||||
|
|||||||
@@ -5,13 +5,11 @@
|
|||||||
#include "../OpenGL.h"
|
#include "../OpenGL.h"
|
||||||
#include "../GLM.h"
|
#include "../GLM.h"
|
||||||
#include "../Core/Util/Rectangle.h"
|
#include "../Core/Util/Rectangle.h"
|
||||||
#include "../Core/ConfigFile.h"
|
|
||||||
#include "Util/ScreenCoords.h"
|
#include "Util/ScreenCoords.h"
|
||||||
#include "Camera.h"
|
#include "Camera.h"
|
||||||
#include "RenderQueue.h"
|
#include "RenderQueue.h"
|
||||||
#include "Model.h"
|
#include "Model.h"
|
||||||
#include "../Core/World.h" //So temp
|
#include "../Core/World.h" //So temp
|
||||||
#include "Util/CommonFunctions.h"
|
|
||||||
|
|
||||||
|
|
||||||
struct PickData
|
struct PickData
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
struct ModelJob : RenderJob
|
struct ModelJob : RenderJob
|
||||||
{
|
{
|
||||||
ModelJob(Model* model, Camera* camera, glm::mat4 matrix, ::RawModel::MaterialProperties matProp, ComponentWrapper modelComponent, World* world, glm::vec4 fillColor, float fillPercentage, bool isShielded)
|
ModelJob(Model* model, Camera* camera, glm::mat4 matrix, ::RawModel::MaterialProperties matProp, ComponentWrapper modelComponent, World* world, glm::vec4 fillColor, float fillPercentage)
|
||||||
: RenderJob()
|
: RenderJob()
|
||||||
{
|
{
|
||||||
Model = model;
|
Model = model;
|
||||||
@@ -117,7 +117,7 @@ struct ModelJob : RenderJob
|
|||||||
|
|
||||||
FillColor = fillColor;
|
FillColor = fillColor;
|
||||||
FillPercentage = fillPercentage;
|
FillPercentage = fillPercentage;
|
||||||
IsShielded = isShielded;
|
|
||||||
|
|
||||||
if (model->IsSkinned()) {
|
if (model->IsSkinned()) {
|
||||||
Skeleton = Model->m_RawModel->m_Skeleton;
|
Skeleton = Model->m_RawModel->m_Skeleton;
|
||||||
@@ -181,10 +181,10 @@ struct ModelJob : RenderJob
|
|||||||
|
|
||||||
glm::vec4 FillColor = glm::vec4(0);
|
glm::vec4 FillColor = glm::vec4(0);
|
||||||
float FillPercentage = 0.0;
|
float FillPercentage = 0.0;
|
||||||
bool IsShielded;
|
|
||||||
void CalculateHash() override
|
void CalculateHash() override
|
||||||
{
|
{
|
||||||
Hash = ShaderID << 20 + ModelID << 10 + TextureID;
|
Hash = TextureID + ModelID << 10 + ShaderID << 20;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -28,13 +28,15 @@ public:
|
|||||||
const ShaderProgram& PickingProgram() const { return *m_PickingProgram; }
|
const ShaderProgram& PickingProgram() const { return *m_PickingProgram; }
|
||||||
//const std::unordered_map<glm::ivec2, EntityID>& PickingColorsToEntity() const { return m_PickingColorsToEntity; }
|
//const std::unordered_map<glm::ivec2, EntityID>& PickingColorsToEntity() const { return m_PickingColorsToEntity; }
|
||||||
GLuint PickingTexture() const { return m_PickingTexture; }
|
GLuint PickingTexture() const { return m_PickingTexture; }
|
||||||
GLuint* DepthBuffer() { return &m_DepthBuffer; }
|
GLuint DepthBuffer() const { return m_DepthBuffer; }
|
||||||
const FrameBuffer& PickingBuffer() const { return m_PickingBuffer; }
|
const FrameBuffer& PickingBuffer() const { return m_PickingBuffer; }
|
||||||
|
|
||||||
|
|
||||||
PickData Pick(glm::vec2 screenCoord);
|
PickData Pick(glm::vec2 screenCoord);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void GenerateTexture(GLuint* texture, GLenum wrapping, GLenum filtering, glm::vec2 dimensions, GLint internalFormat, GLint format, GLenum type) const;
|
||||||
|
|
||||||
EventBroker* m_EventBroker;
|
EventBroker* m_EventBroker;
|
||||||
|
|
||||||
const IRenderer* m_Renderer;
|
const IRenderer* m_Renderer;
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ struct RenderScene
|
|||||||
std::list<std::shared_ptr<RenderJob>> OpaqueObjects;
|
std::list<std::shared_ptr<RenderJob>> OpaqueObjects;
|
||||||
std::list<std::shared_ptr<RenderJob>> TransparentObjects;
|
std::list<std::shared_ptr<RenderJob>> TransparentObjects;
|
||||||
std::list<std::shared_ptr<RenderJob>> OpaqueShieldedObjects;
|
std::list<std::shared_ptr<RenderJob>> OpaqueShieldedObjects;
|
||||||
|
std::list<std::shared_ptr<RenderJob>> TransparentShieldedObjects;
|
||||||
std::list<std::shared_ptr<RenderJob>> ShieldObjects;
|
std::list<std::shared_ptr<RenderJob>> ShieldObjects;
|
||||||
std::list<std::shared_ptr<RenderJob>> SpriteJob;
|
std::list<std::shared_ptr<RenderJob>> SpriteJob;
|
||||||
std::list<std::shared_ptr<RenderJob>> PointLight;
|
std::list<std::shared_ptr<RenderJob>> PointLight;
|
||||||
@@ -40,6 +41,7 @@ struct RenderScene
|
|||||||
Jobs.OpaqueObjects.clear();
|
Jobs.OpaqueObjects.clear();
|
||||||
Jobs.TransparentObjects.clear();
|
Jobs.TransparentObjects.clear();
|
||||||
Jobs.OpaqueShieldedObjects.clear();
|
Jobs.OpaqueShieldedObjects.clear();
|
||||||
|
Jobs.TransparentShieldedObjects.clear();
|
||||||
Jobs.ShieldObjects.clear();
|
Jobs.ShieldObjects.clear();
|
||||||
Jobs.SpriteJob.clear();
|
Jobs.SpriteJob.clear();
|
||||||
Jobs.DirectionalLight.clear();
|
Jobs.DirectionalLight.clear();
|
||||||
|
|||||||
@@ -24,8 +24,6 @@ public:
|
|||||||
bool StencilFunc(GLenum func, GLint ref, GLuint mask);
|
bool StencilFunc(GLenum func, GLint ref, GLuint mask);
|
||||||
bool StencilMask(GLuint mask);
|
bool StencilMask(GLuint mask);
|
||||||
bool DepthMask(GLboolean flag);
|
bool DepthMask(GLboolean flag);
|
||||||
bool DepthFunc(GLenum func);
|
|
||||||
bool AlphaFunc(GLenum func, GLclampf thresholder);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::vector<std::function<void(void)>> m_ResetFunctions;
|
std::vector<std::function<void(void)>> m_ResetFunctions;
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
#include "DrawBloomPass.h"
|
#include "DrawBloomPass.h"
|
||||||
#include "DrawColorCorrectionPass.h"
|
#include "DrawColorCorrectionPass.h"
|
||||||
#include "SSAOPass.h"
|
#include "SSAOPass.h"
|
||||||
#include "CubeMapPass.h"
|
|
||||||
#include "../Core/EventBroker.h"
|
#include "../Core/EventBroker.h"
|
||||||
#include "ImGuiRenderPass.h"
|
#include "ImGuiRenderPass.h"
|
||||||
#include "Camera.h"
|
#include "Camera.h"
|
||||||
@@ -32,9 +31,8 @@ class Renderer : public IRenderer
|
|||||||
static void glfwFrameBufferCallback(GLFWwindow* window, int width, int height);
|
static void glfwFrameBufferCallback(GLFWwindow* window, int width, int height);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Renderer(EventBroker* eventBroker, ConfigFile* config)
|
Renderer(EventBroker* eventBroker)
|
||||||
: m_EventBroker(eventBroker)
|
: m_EventBroker(eventBroker)
|
||||||
, m_Config(config)
|
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
virtual void Initialize() override;
|
virtual void Initialize() override;
|
||||||
@@ -48,7 +46,6 @@ private:
|
|||||||
//----------------------Variables----------------------//
|
//----------------------Variables----------------------//
|
||||||
|
|
||||||
static std::unordered_map <GLFWwindow*, Renderer*> m_WindowToRenderer;
|
static std::unordered_map <GLFWwindow*, Renderer*> m_WindowToRenderer;
|
||||||
ConfigFile* m_Config;
|
|
||||||
|
|
||||||
EventBroker* m_EventBroker;
|
EventBroker* m_EventBroker;
|
||||||
TextPass* m_TextPass;
|
TextPass* m_TextPass;
|
||||||
@@ -61,10 +58,13 @@ private:
|
|||||||
Model* m_UnitSphere;
|
Model* m_UnitSphere;
|
||||||
|
|
||||||
int m_DebugTextureToDraw = 0;
|
int m_DebugTextureToDraw = 0;
|
||||||
int m_CubeMapTexture = 0;
|
|
||||||
bool m_ResizeWindow = false;
|
bool m_ResizeWindow = false;
|
||||||
int m_SSAO_Quality = 0;
|
float m_SSAO_Radius = 1.0f;
|
||||||
int m_GLOW_Quality = 2;
|
float m_SSAO_Bias = 0.05f;
|
||||||
|
float m_SSAO_Contrast = 1.5f;
|
||||||
|
float m_SSAO_IntensityScale = 1.0f;
|
||||||
|
int m_SSAO_NumOfSamples = 24;
|
||||||
|
int m_SSAO_NumOfTurns = 7;
|
||||||
|
|
||||||
PickingPass* m_PickingPass;
|
PickingPass* m_PickingPass;
|
||||||
LightCullingPass* m_LightCullingPass;
|
LightCullingPass* m_LightCullingPass;
|
||||||
@@ -74,7 +74,6 @@ private:
|
|||||||
DrawBloomPass* m_DrawBloomPass;
|
DrawBloomPass* m_DrawBloomPass;
|
||||||
DrawColorCorrectionPass* m_DrawColorCorrectionPass;
|
DrawColorCorrectionPass* m_DrawColorCorrectionPass;
|
||||||
SSAOPass* m_SSAOPass;
|
SSAOPass* m_SSAOPass;
|
||||||
CubeMapPass* m_CubeMapPass;
|
|
||||||
|
|
||||||
//----------------------Functions----------------------//
|
//----------------------Functions----------------------//
|
||||||
void InitializeWindow();
|
void InitializeWindow();
|
||||||
|
|||||||
@@ -13,32 +13,15 @@
|
|||||||
class SSAOPass
|
class SSAOPass
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SSAOPass(IRenderer* renderer, ConfigFile* config);
|
SSAOPass(IRenderer* rendere);
|
||||||
~SSAOPass() { };
|
~SSAOPass() { };
|
||||||
|
|
||||||
void ChangeQuality(int quality);
|
|
||||||
|
|
||||||
void Draw(GLuint depthBuffer, Camera* camera);
|
void Draw(GLuint depthBuffer, Camera* camera);
|
||||||
void Setting(float radius, float bias, float contrast, float intensityScale, int numOfSamples, int numOfTurns, int iterations, int quality);
|
void Setting(float radius, float bias, float contrast, float intensityScale, int numOfSamples, int NumOfTurns);
|
||||||
void ClearBuffer();
|
void ClearBuffer();
|
||||||
void OnWindowResize();
|
|
||||||
|
|
||||||
//Return the SSAO of the texture sent to Draw
|
//Return the SSAO of the texture sent to Draw
|
||||||
GLuint SSAOTexture() const {
|
GLuint SSAOTexture() const { return m_DrawBloomPass->GaussianTexture(); }
|
||||||
if (m_Quality == 0) {
|
|
||||||
return m_WhiteTexture->m_Texture;
|
|
||||||
} else {
|
|
||||||
return m_Gaussian_vert;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
int TextureQuality() const {
|
|
||||||
if (m_Quality == 0) {
|
|
||||||
return 13;
|
|
||||||
} else {
|
|
||||||
return m_TextureQuality;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void InitializeTexture();
|
void InitializeTexture();
|
||||||
@@ -46,13 +29,15 @@ private:
|
|||||||
void InitializeShaderProgram();
|
void InitializeShaderProgram();
|
||||||
void InitializeBuffer();
|
void InitializeBuffer();
|
||||||
|
|
||||||
|
void GenerateTexture(GLuint* texture, GLenum wrapping, GLenum filtering, glm::vec2 dimensions, GLint internalFormat, GLint format, GLenum type) const;
|
||||||
|
|
||||||
|
void ComputeAO(GLuint depthBuffer, Camera* camera);
|
||||||
//void blurHorizontal(GLuint depthBuffer);
|
//void blurHorizontal(GLuint depthBuffer);
|
||||||
//void blurVertical(GLuint depthBuffer);
|
//void blurVertical(GLuint depthBuffer);
|
||||||
|
|
||||||
Model* m_ScreenQuad;
|
Model* m_ScreenQuad;
|
||||||
|
|
||||||
const IRenderer* m_Renderer;
|
const IRenderer* m_Renderer;
|
||||||
ConfigFile* m_Config;
|
|
||||||
|
|
||||||
float m_Radius;
|
float m_Radius;
|
||||||
float m_Bias;
|
float m_Bias;
|
||||||
@@ -60,28 +45,17 @@ private:
|
|||||||
float m_IntensityScale;
|
float m_IntensityScale;
|
||||||
int m_NumOfSamples;
|
int m_NumOfSamples;
|
||||||
int m_NumOfTurns;
|
int m_NumOfTurns;
|
||||||
int m_Iterations;
|
|
||||||
int m_TextureQuality;
|
|
||||||
int m_Quality = 0;
|
|
||||||
|
|
||||||
Texture* m_WhiteTexture;
|
GLuint m_SSAOTexture;
|
||||||
|
|
||||||
GLuint m_SSAOTexture = 0;
|
|
||||||
FrameBuffer m_SSAOFramBuffer;
|
FrameBuffer m_SSAOFramBuffer;
|
||||||
|
|
||||||
GLuint m_SSAOViewSpaceZTexture = 0;
|
GLuint m_SSAOViewSpaceZTexture;
|
||||||
FrameBuffer m_SSAOViewSpaceZFramBuffer;
|
FrameBuffer m_SSAOViewSpaceZFramBuffer;
|
||||||
|
|
||||||
GLuint m_Gaussian_horiz = 0;
|
|
||||||
GLuint m_Gaussian_vert = 0;
|
|
||||||
|
|
||||||
FrameBuffer m_GaussianFrameBuffer_horiz;
|
|
||||||
FrameBuffer m_GaussianFrameBuffer_vert;
|
|
||||||
|
|
||||||
ShaderProgram* m_SSAOProgram;
|
ShaderProgram* m_SSAOProgram;
|
||||||
ShaderProgram* m_SSAOViewSpaceZProgram;
|
ShaderProgram* m_SSAOViewSpaceZProgram;
|
||||||
ShaderProgram* m_GaussianProgram_horiz;
|
|
||||||
ShaderProgram* m_GaussianProgram_vert;
|
DrawBloomPass* m_DrawBloomPass;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
struct SpriteJob : RenderJob
|
struct SpriteJob : RenderJob
|
||||||
{
|
{
|
||||||
SpriteJob(ComponentWrapper cSprite, Camera* camera, glm::mat4 matrix, World* world, glm::vec4 fillColor, float fillPercentage, bool depthSorted, bool isIndicator)
|
SpriteJob(ComponentWrapper cSprite, Camera* camera, glm::mat4 matrix, World* world, glm::vec4 fillColor, float fillPercentage, bool depthSorted)
|
||||||
: RenderJob()
|
: RenderJob()
|
||||||
{
|
{
|
||||||
Model = ResourceManager::Load<::Model>("Models/Core/UnitQuad.mesh");
|
Model = ResourceManager::Load<::Model>("Models/Core/UnitQuad.mesh");
|
||||||
@@ -30,7 +30,7 @@ struct SpriteJob : RenderJob
|
|||||||
|
|
||||||
StartIndex = matProp.material->StartIndex;
|
StartIndex = matProp.material->StartIndex;
|
||||||
EndIndex = matProp.material->EndIndex;
|
EndIndex = matProp.material->EndIndex;
|
||||||
Matrix = matrix;
|
Matrix = matrix;
|
||||||
Color = cSprite["Color"];
|
Color = cSprite["Color"];
|
||||||
Entity = cSprite.EntityID;
|
Entity = cSprite.EntityID;
|
||||||
Position = Transform::AbsolutePosition(world, cSprite.EntityID);
|
Position = Transform::AbsolutePosition(world, cSprite.EntityID);
|
||||||
@@ -41,7 +41,6 @@ struct SpriteJob : RenderJob
|
|||||||
}
|
}
|
||||||
World = world;
|
World = world;
|
||||||
Pickable = world->HasComponent(cSprite.EntityID, "Button");
|
Pickable = world->HasComponent(cSprite.EntityID, "Button");
|
||||||
IsIndicator = isIndicator;
|
|
||||||
|
|
||||||
FillColor = fillColor;
|
FillColor = fillColor;
|
||||||
FillPercentage = fillPercentage;
|
FillPercentage = fillPercentage;
|
||||||
@@ -62,9 +61,7 @@ struct SpriteJob : RenderJob
|
|||||||
unsigned int StartIndex = 0;
|
unsigned int StartIndex = 0;
|
||||||
unsigned int EndIndex = 0;
|
unsigned int EndIndex = 0;
|
||||||
World* World;
|
World* World;
|
||||||
|
|
||||||
bool Pickable;
|
bool Pickable;
|
||||||
bool IsIndicator = false;
|
|
||||||
|
|
||||||
glm::vec4 FillColor = glm::vec4(0);
|
glm::vec4 FillColor = glm::vec4(0);
|
||||||
float FillPercentage = 0.0;
|
float FillPercentage = 0.0;
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ public:
|
|||||||
void Bind(GLenum textureUnit = GL_TEXTURE0);
|
void Bind(GLenum textureUnit = GL_TEXTURE0);
|
||||||
|
|
||||||
GLuint m_Texture = 0;
|
GLuint m_Texture = 0;
|
||||||
unsigned char* Data = nullptr;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -9,10 +9,6 @@
|
|||||||
namespace CommonFunctions
|
namespace CommonFunctions
|
||||||
{
|
{
|
||||||
Texture* LoadTexture(std::string path, bool threaded);
|
Texture* LoadTexture(std::string path, bool threaded);
|
||||||
void GenerateTexture(GLuint* texture, GLenum wrapping, GLenum filtering, glm::vec2 dimensions, GLint internalFormat, GLint format, GLenum type);
|
|
||||||
void GenerateMultiSampleTexture(GLuint* texture, int numSamples, glm::vec2 dimensions, GLint internalFormat);
|
|
||||||
void GenerateMipMapTexture(GLuint* texture, GLenum wrapping, glm::vec2 dimensions, GLint format, GLenum type, GLint numMipMaps);
|
|
||||||
void DeleteTexture(GLuint* texture);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
#include "Core/EntitySystem.h"
|
||||||
|
#include "Rendering/IRenderer.h"
|
||||||
|
#include "Core/Octree.h"
|
||||||
|
#include "Collision/EntityAABB.h"
|
||||||
|
|
||||||
|
class CapturePointsEntitySystem : public EntitySystem<World>
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CapturePointsEntitySystem(EventBroker* eventBroker, bool isClient, bool isServer, IRenderer* renderer, RenderFrame* renderFrame);
|
||||||
|
~CapturePointsEntitySystem();
|
||||||
|
|
||||||
|
private:
|
||||||
|
IRenderer* m_Renderer;
|
||||||
|
RenderFrame* m_RenderFrame;
|
||||||
|
Octree<EntityAABB>* m_OctreeCollision = nullptr;
|
||||||
|
Octree<EntityAABB>* m_OctreeTrigger = nullptr;
|
||||||
|
Octree<EntityAABB>* m_OctreeFrustrumCulling = nullptr;
|
||||||
|
};
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
#ifndef EAmmoPickup_h__
|
||||||
|
#define EAmmoPickup_h__
|
||||||
|
|
||||||
|
#include "Core/EventBroker.h"
|
||||||
|
#include "Core/EntityWrapper.h"
|
||||||
|
|
||||||
|
namespace Events
|
||||||
|
{
|
||||||
|
|
||||||
|
struct AmmoPickup : Event
|
||||||
|
{
|
||||||
|
EntityWrapper Player;
|
||||||
|
int AmmoGain;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -1,14 +1,13 @@
|
|||||||
#ifndef ECaptured_h__
|
#ifndef ECaptured_h__
|
||||||
#define ECaptured_h__
|
#define ECaptured_h__
|
||||||
|
|
||||||
#include "EventBroker.h"
|
#include "Core/EventBroker.h"
|
||||||
#include "../Core/Entity.h"
|
#include "Core/Entity.h"
|
||||||
#include "Engine/GLM.h"
|
|
||||||
|
|
||||||
namespace Events
|
namespace Events
|
||||||
{
|
{
|
||||||
|
|
||||||
//triggers when a capturePoint has been taken over
|
//triggers when a capturePoint has been taken over
|
||||||
struct Captured : Event
|
struct Captured : Event
|
||||||
{
|
{
|
||||||
int TeamNumberThatCapturedCapturePoint;
|
int TeamNumberThatCapturedCapturePoint;
|
||||||
@@ -8,7 +8,7 @@ namespace Events
|
|||||||
|
|
||||||
struct DoubleJump : public Event
|
struct DoubleJump : public Event
|
||||||
{
|
{
|
||||||
EntityID entityID;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
#ifndef EGameEnd_h__
|
||||||
|
#define EGameEnd_h__
|
||||||
|
|
||||||
|
#include "Core/Event.h"
|
||||||
|
|
||||||
|
namespace Events
|
||||||
|
{
|
||||||
|
|
||||||
|
struct GameEnd : Event
|
||||||
|
{
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
#ifndef EGameStart_h__
|
||||||
|
#define EGameStart_h__
|
||||||
|
|
||||||
|
#include "Core/Event.h"
|
||||||
|
|
||||||
|
namespace Events
|
||||||
|
{
|
||||||
|
|
||||||
|
struct GameStart : Event
|
||||||
|
{
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
#ifndef EPlayerHealthPickup_h__
|
||||||
|
#define EPlayerHealthPickup_h__
|
||||||
|
|
||||||
|
#include "Core/EventBroker.h"
|
||||||
|
#include "Core/EntityWrapper.h"
|
||||||
|
|
||||||
|
namespace Events
|
||||||
|
{
|
||||||
|
|
||||||
|
struct PlayerHealthPickup : Event
|
||||||
|
{
|
||||||
|
EntityWrapper Player;
|
||||||
|
double HealthAmount;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
#ifndef EWin_h__
|
||||||
|
#define EWin_h__
|
||||||
|
|
||||||
|
#include "Core/EventBroker.h"
|
||||||
|
#include "Core/Entity.h"
|
||||||
|
|
||||||
|
namespace Events
|
||||||
|
{
|
||||||
|
|
||||||
|
//triggers when a team has captured all capturePoints
|
||||||
|
struct Win : Event
|
||||||
|
{
|
||||||
|
// The winning team corresponding to TeamEnum
|
||||||
|
ComponentInfo::EnumType Team;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
+3
-9
@@ -12,18 +12,16 @@
|
|||||||
#include "Input/InputProxy.h"
|
#include "Input/InputProxy.h"
|
||||||
#include "Input/KeyboardInputHandler.h"
|
#include "Input/KeyboardInputHandler.h"
|
||||||
#include "Input/MouseInputHandler.h"
|
#include "Input/MouseInputHandler.h"
|
||||||
#include "Core/EKeyDown.h"
|
|
||||||
#include "Core/EntityFilePreprocessor.h"
|
#include "Core/EntityFilePreprocessor.h"
|
||||||
#include "Core/SystemPipeline.h"
|
#include "Core/EntitySystem.h"
|
||||||
#include "Systems/ExplosionEffectSystem.h"
|
#include "Systems/ExplosionEffectSystem.h"
|
||||||
#include "Editor/EditorSystem.h"
|
#include "Editor/EditorSystem.h"
|
||||||
#include "Core/EntityFile.h"
|
#include "Core/EntityFile.h"
|
||||||
#include "Rendering/RenderSystem.h"
|
|
||||||
#include "Core/EntityFileParser.h"
|
#include "Core/EntityFileParser.h"
|
||||||
#include "Core/Octree.h"
|
#include "Core/Octree.h"
|
||||||
#include "Rendering/Font.h"
|
#include "Rendering/Font.h"
|
||||||
#include "Systems/InterpolationSystem.h"
|
|
||||||
#include "Collision/EntityAABB.h"
|
#include "Collision/EntityAABB.h"
|
||||||
|
|
||||||
// Network
|
// Network
|
||||||
#include <boost/thread.hpp>
|
#include <boost/thread.hpp>
|
||||||
#include "Network/Network.h"
|
#include "Network/Network.h"
|
||||||
@@ -55,11 +53,7 @@ private:
|
|||||||
IRenderer* m_Renderer;
|
IRenderer* m_Renderer;
|
||||||
InputManager* m_InputManager;
|
InputManager* m_InputManager;
|
||||||
InputProxy* m_InputProxy;
|
InputProxy* m_InputProxy;
|
||||||
World* m_World;
|
EntitySystem<World>* m_EntitySystem;
|
||||||
Octree<EntityAABB>* m_OctreeCollision;
|
|
||||||
Octree<EntityAABB>* m_OctreeTrigger;
|
|
||||||
Octree<EntityAABB>* m_OctreeFrustrumCulling;
|
|
||||||
SystemPipeline* m_SystemPipeline;
|
|
||||||
RenderFrame* m_RenderFrame;
|
RenderFrame* m_RenderFrame;
|
||||||
Client* m_NetworkClient = nullptr;
|
Client* m_NetworkClient = nullptr;
|
||||||
Server* m_NetworkServer = nullptr;
|
Server* m_NetworkServer = nullptr;
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
#include "Core/Transform.h"
|
#include "Core/Transform.h"
|
||||||
#include "Core/ResourceManager.h"
|
#include "Core/ResourceManager.h"
|
||||||
#include "Core/EntityFileParser.h"
|
#include "Core/EntityFileParser.h"
|
||||||
#include "Core/EPickupSpawned.h"
|
#include "Events/EPickupSpawned.h"
|
||||||
#include "Core/EAmmoPickup.h"
|
#include "Events/EAmmoPickup.h"
|
||||||
#include "Engine/Collision/ETrigger.h"
|
#include "Engine/Collision/ETrigger.h"
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
|
|
||||||
@@ -26,7 +26,6 @@ private:
|
|||||||
double AmmoGain;
|
double AmmoGain;
|
||||||
double RespawnTimer;
|
double RespawnTimer;
|
||||||
double DecreaseThisRespawnTimer;
|
double DecreaseThisRespawnTimer;
|
||||||
EntityID parentID;
|
|
||||||
};
|
};
|
||||||
std::vector<NewAmmoPickup> m_ETriggerTouchVector;
|
std::vector<NewAmmoPickup> m_ETriggerTouchVector;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -7,8 +7,7 @@
|
|||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "Core/System.h"
|
#include "Core/System.h"
|
||||||
#include "Engine/Collision/ETrigger.h"
|
#include "Engine/Collision/ETrigger.h"
|
||||||
#include "Core/ECaptured.h"
|
#include "Events/ECaptured.h"
|
||||||
#include "Core/EWin.h"
|
|
||||||
|
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
#include "Core/System.h"
|
||||||
|
#include "Events/EGameStart.h"
|
||||||
|
#include "Events/EGameEnd.h"
|
||||||
|
#include "Events/ECaptured.h"
|
||||||
|
#include "Events/EWin.h"
|
||||||
|
|
||||||
|
class CapturePointsGamemode : public ImpureSystem
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CapturePointsGamemode(SystemParams params);
|
||||||
|
|
||||||
|
virtual void Update(double dt) override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
bool m_GameRuning = false;
|
||||||
|
double m_GameTime = 0.0;
|
||||||
|
|
||||||
|
EventRelay<CapturePointsGamemode, Events::GameStart> m_EGameStart;
|
||||||
|
bool OnGameStart(const Events::GameStart& e);
|
||||||
|
EventRelay<CapturePointsGamemode, Events::Captured> m_ECaptured;
|
||||||
|
bool OnCaptured(const Events::Captured& e);
|
||||||
|
|
||||||
|
boost::optional<ComponentWrapper> currentGamemode();
|
||||||
|
bool isCurrentGamemode();
|
||||||
|
boost::optional<ComponentInfo::EnumType> winCondition();
|
||||||
|
void setRunning(bool running);
|
||||||
|
};
|
||||||
@@ -14,13 +14,11 @@
|
|||||||
#include <glm/gtx/vector_angle.hpp>
|
#include <glm/gtx/vector_angle.hpp>
|
||||||
|
|
||||||
#include "Rendering/Util/CommonFunctions.h"
|
#include "Rendering/Util/CommonFunctions.h"
|
||||||
//#define INDICATOR_TEST
|
|
||||||
|
|
||||||
class DamageIndicatorSystem : public ImpureSystem
|
class DamageIndicatorSystem : public System
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DamageIndicatorSystem(SystemParams params);
|
DamageIndicatorSystem(SystemParams params);
|
||||||
virtual void Update(double dt) override;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
EventRelay<DamageIndicatorSystem, Events::PlayerDamage> m_EPlayerDamage;
|
EventRelay<DamageIndicatorSystem, Events::PlayerDamage> m_EPlayerDamage;
|
||||||
@@ -30,20 +28,6 @@ private:
|
|||||||
bool OnSetCamera(const Events::SetCamera& e);
|
bool OnSetCamera(const Events::SetCamera& e);
|
||||||
|
|
||||||
EntityID m_CurrentCamera = -1;
|
EntityID m_CurrentCamera = -1;
|
||||||
struct DamageIndicatorStruct {
|
|
||||||
EntityWrapper spriteEntity;
|
|
||||||
glm::vec3 enemyPosition;
|
|
||||||
DamageIndicatorStruct(EntityWrapper sprite, glm::vec3 pos)
|
|
||||||
: spriteEntity(sprite)
|
|
||||||
, enemyPosition(pos) {}
|
|
||||||
};
|
|
||||||
std::vector<DamageIndicatorStruct> updateDamageIndicatorVector;
|
|
||||||
float CalculateAngle(EntityWrapper player, glm::vec3 enemyPos);
|
|
||||||
|
|
||||||
//for tests
|
|
||||||
#ifdef INDICATOR_TEST
|
|
||||||
glm::vec3 DamageIndicatorTest(EntityWrapper player);
|
|
||||||
int m_TestVar = 0;
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "Core/System.h"
|
#include "Core/System.h"
|
||||||
#include "Core/EPlayerDamage.h"
|
#include "Core/EPlayerDamage.h"
|
||||||
#include "Core/EPlayerHealthPickup.h"
|
|
||||||
#include "Core/EPlayerDeath.h"
|
#include "Core/EPlayerDeath.h"
|
||||||
|
#include "Events/EPlayerHealthPickup.h"
|
||||||
#include "Core/ConfigFile.h"
|
#include "Core/ConfigFile.h"
|
||||||
#include "Input/EInputCommand.h"
|
#include "Input/EInputCommand.h"
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
#include "Core/Transform.h"
|
#include "Core/Transform.h"
|
||||||
#include "Core/ResourceManager.h"
|
#include "Core/ResourceManager.h"
|
||||||
#include "Core/EntityFileParser.h"
|
#include "Core/EntityFileParser.h"
|
||||||
#include "Core/EPickupSpawned.h"
|
#include "Events/EPickupSpawned.h"
|
||||||
#include "Core/EPlayerHealthPickup.h"
|
#include "Events/EPlayerHealthPickup.h"
|
||||||
#include "Engine/Collision/ETrigger.h"
|
#include "Engine/Collision/ETrigger.h"
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
@@ -27,7 +27,6 @@ private:
|
|||||||
double HealthGain;
|
double HealthGain;
|
||||||
double RespawnTimer;
|
double RespawnTimer;
|
||||||
double DecreaseThisRespawnTimer;
|
double DecreaseThisRespawnTimer;
|
||||||
EntityID parentID;
|
|
||||||
};
|
};
|
||||||
std::vector<NewHealthPickup> m_ETriggerTouchVector;
|
std::vector<NewHealthPickup> m_ETriggerTouchVector;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -34,14 +34,10 @@ private:
|
|||||||
glm::vec3 m_LastPosition = glm::vec3();
|
glm::vec3 m_LastPosition = glm::vec3();
|
||||||
// The logic for making the sound play when player is moving
|
// The logic for making the sound play when player is moving
|
||||||
void playerStep(double dt);
|
void playerStep(double dt);
|
||||||
// Spawn a hexagon at origin of an Entity
|
|
||||||
void spawnHexagon(EntityWrapper target);
|
|
||||||
|
|
||||||
EventRelay<PlayerMovementSystem, Events::PlayerSpawned> m_EPlayerSpawned;
|
EventRelay<PlayerMovementSystem, Events::PlayerSpawned> m_EPlayerSpawned;
|
||||||
bool OnPlayerSpawned(Events::PlayerSpawned& e);
|
bool OnPlayerSpawned(Events::PlayerSpawned& e);
|
||||||
EventRelay<PlayerMovementSystem, Events::DoubleJump> m_EDoubleJump;
|
|
||||||
bool PlayerMovementSystem::OnDoubleJump(Events::DoubleJump & e);
|
|
||||||
|
|
||||||
void updateMovementControllers(double dt);
|
void updateMovementControllers(double dt);
|
||||||
void updateVelocity(EntityWrapper player, double dt);
|
void updateVelocity(double dt);
|
||||||
};
|
};
|
||||||
@@ -14,6 +14,8 @@ public:
|
|||||||
|
|
||||||
virtual void Update(double dt) override;
|
virtual void Update(double dt) override;
|
||||||
|
|
||||||
|
static void SetRespawnTime(float respawnTime) { m_RespawnTime = respawnTime; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct SpawnRequest
|
struct SpawnRequest
|
||||||
{
|
{
|
||||||
@@ -29,8 +31,8 @@ private:
|
|||||||
//EntityWrapper ID -> Player ID.
|
//EntityWrapper ID -> Player ID.
|
||||||
std::map<EntityID, int> m_PlayerIDs;
|
std::map<EntityID, int> m_PlayerIDs;
|
||||||
|
|
||||||
float m_ForcedRespawnTime;
|
static float m_RespawnTime;
|
||||||
bool m_DbgConfigForceRespawn;
|
float m_Timer;
|
||||||
|
|
||||||
EventRelay<PlayerSpawnSystem, Events::InputCommand> m_OnInputCommand;
|
EventRelay<PlayerSpawnSystem, Events::InputCommand> m_OnInputCommand;
|
||||||
bool OnInputCommand(Events::InputCommand& e);
|
bool OnInputCommand(Events::InputCommand& e);
|
||||||
|
|||||||
@@ -13,10 +13,10 @@
|
|||||||
#include "../Engine/Core/EShoot.h"
|
#include "../Engine/Core/EShoot.h"
|
||||||
#include "../Engine/Core/EPlayerSpawned.h"
|
#include "../Engine/Core/EPlayerSpawned.h"
|
||||||
#include "../Engine/Input/EInputCommand.h"
|
#include "../Engine/Input/EInputCommand.h"
|
||||||
#include "../Engine/Core/ECaptured.h"
|
#include "Events/ECaptured.h"
|
||||||
#include "../Engine/Core/EPlayerDamage.h"
|
#include "../Engine/Core/EPlayerDamage.h"
|
||||||
#include "../Engine/Core/EPlayerDeath.h"
|
#include "../Engine/Core/EPlayerDeath.h"
|
||||||
#include "../Engine/Core/EPlayerHealthPickup.h"
|
#include "Events/EPlayerHealthPickup.h"
|
||||||
#include "../Engine/Collision/ETrigger.h"
|
#include "../Engine/Collision/ETrigger.h"
|
||||||
#include "../Engine/Sound/EPlaySoundOnEntity.h"
|
#include "../Engine/Sound/EPlaySoundOnEntity.h"
|
||||||
#include "../Engine/Sound/EPlayBackgroundMusic.h"
|
#include "../Engine/Sound/EPlayBackgroundMusic.h"
|
||||||
|
|||||||
@@ -1,33 +1,37 @@
|
|||||||
#ifndef AssaultWeaponBehaviour_h__
|
|
||||||
#define AssaultWeaponBehaviour_h__
|
|
||||||
|
|
||||||
#include "Sound/EPlaySoundOnEntity.h"
|
#include "Sound/EPlaySoundOnEntity.h"
|
||||||
#include "Collision/Collision.h"
|
#include "Collision/Collision.h"
|
||||||
|
#include "Rendering/AnimationSystem.h"
|
||||||
#include "Core/ConfigFile.h"
|
#include "Core/ConfigFile.h"
|
||||||
#include "WeaponBehaviour.h"
|
#include "WeaponBehaviour.h"
|
||||||
#include "../SpawnerSystem.h"
|
#include "../SpawnerSystem.h"
|
||||||
#include "Core/EPlayerDamage.h"
|
#include "Core/EPlayerDamage.h"
|
||||||
#include "Core/EShoot.h"
|
#include "Core/EShoot.h"
|
||||||
|
|
||||||
class AssaultWeaponBehaviour : public WeaponBehaviour<AssaultWeaponBehaviour>
|
|
||||||
|
class AssaultWeaponBehaviour : public WeaponBehaviour
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AssaultWeaponBehaviour(SystemParams systemParams, IRenderer* renderer, Octree<EntityAABB>* collisionOctree)
|
AssaultWeaponBehaviour(SystemParams systemParams, IRenderer* renderer, Octree<EntityAABB>* collisionOctree, EntityWrapper weaponEntity);
|
||||||
: WeaponBehaviour(systemParams, "AssaultWeapon", renderer, collisionOctree)
|
|
||||||
{ }
|
|
||||||
|
|
||||||
protected:
|
virtual void Fire() override;
|
||||||
virtual void OnPrimaryFire(WeaponInfo& wi) override;
|
virtual void CeaseFire() override;
|
||||||
virtual void OnCeasePrimaryFire(WeaponInfo& wi) override;
|
virtual void Reload() override;
|
||||||
virtual void OnReload(WeaponInfo& wi) override;
|
|
||||||
|
virtual void Update(double dt) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
EntityWrapper m_FirstPersonModel;
|
||||||
|
EntityWrapper m_ThirdPersonModel;
|
||||||
// State
|
// State
|
||||||
bool m_Firing = false;
|
bool m_Firing = false;
|
||||||
bool m_Reloading = false;
|
bool m_Reloading = false;
|
||||||
double m_ReloadTimer = 0.0;
|
double m_ReloadTimer = 0.0;
|
||||||
|
EntityWrapper m_FirstPersonReloadImpersonator;
|
||||||
|
EntityWrapper m_ThirdPersonReloadImpersonator;
|
||||||
double m_TimeSinceLastFire = 0.0;
|
double m_TimeSinceLastFire = 0.0;
|
||||||
EntityWrapper m_FirstPersonReloadImpostor;
|
|
||||||
|
EventRelay<WeaponBehaviour, Events::AnimationComplete> m_EAnimationComplete;
|
||||||
|
bool OnAnimationComplete(Events::AnimationComplete& e);
|
||||||
|
|
||||||
bool hasAmmo();
|
bool hasAmmo();
|
||||||
void fireRound();
|
void fireRound();
|
||||||
@@ -43,5 +47,3 @@ private:
|
|||||||
bool shoot(double damage);
|
bool shoot(double damage);
|
||||||
void showHitMarker();
|
void showHitMarker();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
#include "WeaponBehaviour.h"
|
|
||||||
#include "Collision/Collision.h"
|
|
||||||
#include "Core/EPlayerDamage.h"
|
|
||||||
#include "Rendering/ESetCamera.h"
|
|
||||||
|
|
||||||
class DefenderWeaponBehaviour : public WeaponBehaviour<DefenderWeaponBehaviour>
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
DefenderWeaponBehaviour(SystemParams systemParams, IRenderer* renderer, Octree<EntityAABB>* collisionOctree)
|
|
||||||
: System(systemParams)
|
|
||||||
, WeaponBehaviour(systemParams, "DefenderWeapon", renderer, collisionOctree)
|
|
||||||
, m_RandomEngine(m_RandomDevice())
|
|
||||||
{
|
|
||||||
EVENT_SUBSCRIBE_MEMBER(m_ESetCamera, &DefenderWeaponBehaviour::OnSetCamera);
|
|
||||||
}
|
|
||||||
|
|
||||||
void UpdateComponent(EntityWrapper& entity, ComponentWrapper& cWeapon, double dt) override;
|
|
||||||
void UpdateWeapon(WeaponInfo& wi, double dt) override;
|
|
||||||
void OnPrimaryFire(WeaponInfo& wi) override;
|
|
||||||
void OnCeasePrimaryFire(WeaponInfo& wi) override;
|
|
||||||
bool OnInputCommand(WeaponInfo& wi, const Events::InputCommand& e) override;
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::random_device m_RandomDevice;
|
|
||||||
std::mt19937 m_RandomEngine;
|
|
||||||
EntityWrapper m_CurrentCamera;
|
|
||||||
|
|
||||||
EventRelay<DefenderWeaponBehaviour, Events::SetCamera> m_ESetCamera;
|
|
||||||
bool OnSetCamera(const Events::SetCamera& e);
|
|
||||||
|
|
||||||
// Weapon functions
|
|
||||||
void fireShell(WeaponInfo& wi);
|
|
||||||
void dealDamage(WeaponInfo& wi, glm::vec3 direction, double damage);
|
|
||||||
|
|
||||||
// Utility
|
|
||||||
float traceRayDistance(glm::vec3 origin, glm::vec3 direction);
|
|
||||||
Camera cameraFromEntity(EntityWrapper camera);
|
|
||||||
};
|
|
||||||
@@ -5,177 +5,30 @@
|
|||||||
#include "Rendering/IRenderer.h"
|
#include "Rendering/IRenderer.h"
|
||||||
#include "Core/Octree.h"
|
#include "Core/Octree.h"
|
||||||
#include "Collision/EntityAABB.h"
|
#include "Collision/EntityAABB.h"
|
||||||
#include "Input/EInputCommand.h"
|
|
||||||
#include "Systems/SpawnerSystem.h"
|
|
||||||
|
|
||||||
template <typename ETYPE>
|
class WeaponBehaviour : public System
|
||||||
class WeaponBehaviour : public PureSystem
|
|
||||||
{
|
{
|
||||||
friend class WeaponSystem;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
WeaponBehaviour(SystemParams params, std::string componentType, IRenderer* renderer, Octree<EntityAABB>* collisionOctree)
|
WeaponBehaviour(SystemParams systemParams, IRenderer* renderer, Octree<EntityAABB>* collisionOctree, EntityWrapper player)
|
||||||
: System(params)
|
: System(systemParams)
|
||||||
, PureSystem(componentType)
|
|
||||||
, m_Renderer(renderer)
|
, m_Renderer(renderer)
|
||||||
, m_CollisionOctree(collisionOctree)
|
, m_CollisionOctree(collisionOctree)
|
||||||
{
|
, m_Player(player)
|
||||||
EVENT_SUBSCRIBE_MEMBER(m_EInputCommand, &WeaponBehaviour::_OnInputCommand)
|
{ }
|
||||||
}
|
|
||||||
virtual ~WeaponBehaviour() = default;
|
virtual ~WeaponBehaviour() = default;
|
||||||
|
|
||||||
virtual void UpdateComponent(EntityWrapper& entity, ComponentWrapper& component, double dt) override
|
WeaponBehaviour(const WeaponBehaviour&) = delete;
|
||||||
{
|
WeaponBehaviour& operator=(const WeaponBehaviour &) = delete;
|
||||||
auto weapon = getActiveWeapon(entity);
|
|
||||||
if (!weapon) {
|
virtual void Fire() = 0;
|
||||||
return;
|
virtual void CeaseFire() { }
|
||||||
} else {
|
virtual void Reload() { }
|
||||||
UpdateWeapon(*weapon, dt);
|
virtual void Update(double dt) { }
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
struct WeaponInfo
|
|
||||||
{
|
|
||||||
std::string WeaponComponent;
|
|
||||||
EntityWrapper Player;
|
|
||||||
EntityWrapper WeaponEntity;
|
|
||||||
EntityWrapper FirstPersonEntity;
|
|
||||||
EntityWrapper ThirdPersonEntity;
|
|
||||||
ComponentWrapper GetComponent() { return WeaponEntity[WeaponComponent]; }
|
|
||||||
};
|
|
||||||
|
|
||||||
IRenderer* m_Renderer;
|
IRenderer* m_Renderer;
|
||||||
Octree<EntityAABB>* m_CollisionOctree;
|
Octree<EntityAABB>* m_CollisionOctree;
|
||||||
std::unordered_map<EntityWrapper, WeaponInfo> m_ActiveWeapons;
|
EntityWrapper m_Player;
|
||||||
|
|
||||||
virtual void UpdateWeapon(WeaponInfo& wi, double dt) { }
|
|
||||||
virtual void OnPrimaryFire(WeaponInfo& wi) { }
|
|
||||||
virtual void OnCeasePrimaryFire(WeaponInfo& wi) { }
|
|
||||||
virtual void OnReload(WeaponInfo& wi) { }
|
|
||||||
virtual bool OnInputCommand(WeaponInfo& wi, const Events::InputCommand& e) { return false; }
|
|
||||||
|
|
||||||
private:
|
|
||||||
EventRelay<ETYPE, Events::InputCommand> m_EInputCommand;
|
|
||||||
bool _OnInputCommand(const Events::InputCommand& e)
|
|
||||||
{
|
|
||||||
EntityWrapper player = e.Player;
|
|
||||||
if (e.PlayerID == -1) {
|
|
||||||
player = LocalPlayer;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Make sure the player is alive
|
|
||||||
if (!player.Valid()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Make sure the player has this weapon
|
|
||||||
auto weapon = getWeaponComponent(player);
|
|
||||||
if (!weapon) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Weapon selection
|
|
||||||
if (e.Command == "SelectWeapon") {
|
|
||||||
if (static_cast<ComponentInfo::EnumType>(e.Value) == static_cast<ComponentInfo::EnumType>((*weapon)["Slot"])) {
|
|
||||||
selectWeapon(player);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Only handle weapon actions if the weapon is active
|
|
||||||
auto activeWeapon = getActiveWeapon(player);
|
|
||||||
if (!activeWeapon) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fire
|
|
||||||
if (e.Command == "PrimaryFire") {
|
|
||||||
if (e.Value > 0) {
|
|
||||||
OnPrimaryFire(*activeWeapon);
|
|
||||||
} else {
|
|
||||||
OnCeasePrimaryFire(*activeWeapon);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reload
|
|
||||||
if (e.Command == "Reload" && e.Value != 0) {
|
|
||||||
OnReload(*activeWeapon);
|
|
||||||
}
|
|
||||||
|
|
||||||
return OnInputCommand(*activeWeapon, e);
|
|
||||||
}
|
|
||||||
|
|
||||||
boost::optional<ComponentWrapper> getWeaponComponent(EntityWrapper player)
|
|
||||||
{
|
|
||||||
if (!player.HasComponent(m_ComponentType)) {
|
|
||||||
return boost::none;
|
|
||||||
}
|
|
||||||
|
|
||||||
return player[m_ComponentType];
|
|
||||||
}
|
|
||||||
|
|
||||||
boost::optional<WeaponInfo&> getActiveWeapon(EntityWrapper player)
|
|
||||||
{
|
|
||||||
auto it = m_ActiveWeapons.find(player);
|
|
||||||
if (it == m_ActiveWeapons.end()) {
|
|
||||||
return boost::none;
|
|
||||||
}
|
|
||||||
WeaponInfo& activeWeapon = it->second;
|
|
||||||
|
|
||||||
if (!activeWeapon.FirstPersonEntity.Valid() && !activeWeapon.ThirdPersonEntity.Valid()) {
|
|
||||||
return boost::none;
|
|
||||||
}
|
|
||||||
|
|
||||||
return activeWeapon;
|
|
||||||
}
|
|
||||||
|
|
||||||
void selectWeapon(EntityWrapper player)
|
|
||||||
{
|
|
||||||
// Find the weapon attachments matching the weapon type
|
|
||||||
std::vector<EntityWrapper> weaponAttachments = player.ChildrenWithComponent("WeaponAttachment");
|
|
||||||
EntityWrapper firstPersonAttachment;
|
|
||||||
EntityWrapper thirdPersonAttachment;
|
|
||||||
for (auto& attachment : weaponAttachments) {
|
|
||||||
ComponentWrapper cWeaponAttachment = attachment["WeaponAttachment"];
|
|
||||||
if ((std::string&)cWeaponAttachment["Weapon"] == m_ComponentType) {
|
|
||||||
ComponentWrapper::SubscriptProxy person = cWeaponAttachment["Person"];
|
|
||||||
if ((ComponentInfo::EnumType)person == person.Enum("FirstPerson")) {
|
|
||||||
firstPersonAttachment = attachment;
|
|
||||||
} else if ((ComponentInfo::EnumType)person == person.Enum("ThirdPerson")) {
|
|
||||||
thirdPersonAttachment = attachment;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!firstPersonAttachment.Valid() && !thirdPersonAttachment.Valid()) {
|
|
||||||
LOG_WARNING("No weapon attachment found for %s of player #%i", m_ComponentType.c_str(), player.ID);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Purge other weapon entities
|
|
||||||
for (auto& attachment : weaponAttachments) {
|
|
||||||
//if (attachment == firstPersonAttachment || attachment == thirdPersonAttachment) {
|
|
||||||
// continue;
|
|
||||||
//}
|
|
||||||
attachment.DeleteChildren();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Spawn the weapon(s)
|
|
||||||
EntityWrapper firstPersonWeapon;
|
|
||||||
EntityWrapper thirdPersonWeapon;
|
|
||||||
if (firstPersonAttachment.Valid()) {
|
|
||||||
firstPersonWeapon = SpawnerSystem::Spawn(firstPersonAttachment, firstPersonAttachment);
|
|
||||||
}
|
|
||||||
if (thirdPersonAttachment.Valid()) {
|
|
||||||
thirdPersonWeapon = SpawnerSystem::Spawn(thirdPersonAttachment, thirdPersonAttachment);
|
|
||||||
}
|
|
||||||
|
|
||||||
m_ActiveWeapons[player].WeaponComponent = m_ComponentType;
|
|
||||||
m_ActiveWeapons[player].Player = player;
|
|
||||||
m_ActiveWeapons[player].WeaponEntity = player;
|
|
||||||
m_ActiveWeapons[player].FirstPersonEntity = firstPersonWeapon;
|
|
||||||
m_ActiveWeapons[player].ThirdPersonEntity = thirdPersonWeapon;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -37,48 +37,3 @@ ResourceLoading=true
|
|||||||
BGMVolume=1.0
|
BGMVolume=1.0
|
||||||
SFXVolume=1.0
|
SFXVolume=1.0
|
||||||
Announcer=female
|
Announcer=female
|
||||||
|
|
||||||
[SSAO]
|
|
||||||
Quality=0
|
|
||||||
|
|
||||||
[SSAO1]
|
|
||||||
Radius=1.0
|
|
||||||
Bias=0.02
|
|
||||||
Contrast=1.5
|
|
||||||
Intensity=1.0
|
|
||||||
NumSamples=8
|
|
||||||
NumTurns=3
|
|
||||||
NumIterations=5
|
|
||||||
TextureQuality=2
|
|
||||||
|
|
||||||
[SSAO2]
|
|
||||||
Radius=1.0
|
|
||||||
Bias=0.02
|
|
||||||
Contrast=1.5
|
|
||||||
Intensity=1.0
|
|
||||||
NumSamples=16
|
|
||||||
NumTurns=13
|
|
||||||
NumIterations=9
|
|
||||||
TextureQuality=1
|
|
||||||
|
|
||||||
[SSAO3]
|
|
||||||
Radius=1.0
|
|
||||||
Bias=0.02
|
|
||||||
Contrast=1.5
|
|
||||||
Intensity=1.0
|
|
||||||
NumSamples=24
|
|
||||||
NumTurns=17
|
|
||||||
NumIterations=9
|
|
||||||
TextureQuality=0
|
|
||||||
|
|
||||||
[GLOW]
|
|
||||||
Quality=3;
|
|
||||||
|
|
||||||
[GLOW1]
|
|
||||||
NumIterations=5
|
|
||||||
|
|
||||||
[GLOW2]
|
|
||||||
NumIterations=9
|
|
||||||
|
|
||||||
[GLOW3]
|
|
||||||
NumIterations=13
|
|
||||||
@@ -44,10 +44,6 @@
|
|||||||
<xs:include schemaLocation="Components/Menu.xsd"/>
|
<xs:include schemaLocation="Components/Menu.xsd"/>
|
||||||
<xs:include schemaLocation="Components/KillFeed.xsd"/>
|
<xs:include schemaLocation="Components/KillFeed.xsd"/>
|
||||||
<xs:include schemaLocation="Components/Page.xsd"/>
|
<xs:include schemaLocation="Components/Page.xsd"/>
|
||||||
<xs:include schemaLocation="Components/SpriteIndicator.xsd"/>
|
|
||||||
<xs:include schemaLocation="Components/Button.xsd"/>
|
<xs:include schemaLocation="Components/Button.xsd"/>
|
||||||
<xs:include schemaLocation="Components/DoubleJump.xsd"/>
|
<xs:include schemaLocation="Components/Gamemode.xsd"/>
|
||||||
<xs:include schemaLocation="Components/WeaponAttachment.xsd"/>
|
|
||||||
<xs:include schemaLocation="Components/DefenderWeapon.xsd"/>
|
|
||||||
<xs:include schemaLocation="Components/CapturePointGameMode.xsd"/>
|
|
||||||
</xs:schema>
|
</xs:schema>
|
||||||
@@ -8,5 +8,4 @@
|
|||||||
<RPM>120</RPM>
|
<RPM>120</RPM>
|
||||||
<ViewPunch>0.01</ViewPunch>
|
<ViewPunch>0.01</ViewPunch>
|
||||||
<ReloadTime>2</ReloadTime>
|
<ReloadTime>2</ReloadTime>
|
||||||
<Slot><Primary/></Slot>
|
|
||||||
</AssaultWeapon>
|
</AssaultWeapon>
|
||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types">
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types">
|
||||||
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
|
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
|
||||||
<xs:include schemaLocation="../Types/WeaponSlotEnum.xsd"/>
|
|
||||||
|
|
||||||
<xs:element name="AssaultWeapon">
|
<xs:element name="AssaultWeapon">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
@@ -29,7 +28,6 @@
|
|||||||
<xs:element name="ReloadTime" type="t:double" minOccurs="0">
|
<xs:element name="ReloadTime" type="t:double" minOccurs="0">
|
||||||
<xs:annotation><xs:documentation>Time it takes to reload the weapon in seconds</xs:documentation></xs:annotation>
|
<xs:annotation><xs:documentation>Time it takes to reload the weapon in seconds</xs:documentation></xs:annotation>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
<xs:element name="Slot" type="WeaponSlotEnum" minOccurs="0"/>
|
|
||||||
</xs:all>
|
</xs:all>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
|
||||||
<CapturePointGameMode xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CapturePointGameMode.xsd">
|
|
||||||
<RespawnTime>0.0</RespawnTime>
|
|
||||||
<MaxRespawnTime>8.0</MaxRespawnTime>
|
|
||||||
</CapturePointGameMode>
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
|
|
||||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types">
|
|
||||||
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
|
|
||||||
|
|
||||||
<xs:element name="CapturePointGameMode">
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:all>
|
|
||||||
<xs:element name="RespawnTime" type="t:double" minOccurs="0">
|
|
||||||
<xs:annotation><xs:documentation>The time since the last respawn wave. Players will be spawned when this reaches MaxRespawnTime.</xs:documentation></xs:annotation>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="MaxRespawnTime" type="t:double" minOccurs="0">
|
|
||||||
<xs:annotation><xs:documentation>Players will be spawned when RespawnTime reaches this.</xs:documentation></xs:annotation>
|
|
||||||
</xs:element>
|
|
||||||
</xs:all>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
</xs:schema>
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
|
||||||
<DefenderWeapon xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="DefenderWeapon.xsd">
|
|
||||||
<MagazineAmmo>8</MagazineAmmo>
|
|
||||||
<MagazineSize>8</MagazineSize>
|
|
||||||
<Ammo>64</Ammo>
|
|
||||||
<MaxAmmo>64</MaxAmmo>
|
|
||||||
<BaseDamage>90</BaseDamage>
|
|
||||||
<SpreadAngle>0.174533</SpreadAngle> <!-- 0.174533 = 10 degrees -->
|
|
||||||
<NumPellets>10</NumPellets>
|
|
||||||
<RPM>120</RPM>
|
|
||||||
<ViewPunch>0.01</ViewPunch>
|
|
||||||
<ReloadTime>0.5</ReloadTime>
|
|
||||||
<Slot><Primary/></Slot>
|
|
||||||
<IsFiring>false</IsFiring>
|
|
||||||
<TimeSinceLastFire>0</TimeSinceLastFire>
|
|
||||||
</DefenderWeapon>
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
|
|
||||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types">
|
|
||||||
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
|
|
||||||
<xs:include schemaLocation="../Types/WeaponSlotEnum.xsd"/>
|
|
||||||
|
|
||||||
<xs:element name="DefenderWeapon">
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:all>
|
|
||||||
<xs:element name="MagazineAmmo" type="t:int" minOccurs="0">
|
|
||||||
<xs:annotation><xs:documentation>Ammo currently loaded into the magazine</xs:documentation></xs:annotation>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="MagazineSize" type="t:int" minOccurs="0">
|
|
||||||
<xs:annotation><xs:documentation>Max number of rounds in a magazine</xs:documentation></xs:annotation>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="Ammo" type="t:int" minOccurs="0">
|
|
||||||
<xs:annotation><xs:documentation>Current ammo carried</xs:documentation></xs:annotation>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="MaxAmmo" type="t:int" minOccurs="0">
|
|
||||||
<xs:annotation><xs:documentation>Maximum ammo able to be carried</xs:documentation></xs:annotation>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="BaseDamage" type="t:double" minOccurs="0">
|
|
||||||
<xs:annotation><xs:documentation>Damage dealt if all shotgun pellets hit</xs:documentation></xs:annotation>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="SpreadAngle" type="t:float" minOccurs="0">
|
|
||||||
<xs:annotation><xs:documentation>Spread angle in radians</xs:documentation></xs:annotation>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="NumPellets" type="t:int" minOccurs="0"/>
|
|
||||||
<xs:element name="RPM" type="t:double" minOccurs="0">
|
|
||||||
<xs:annotation><xs:documentation>Rate of fire in rounds per minute</xs:documentation></xs:annotation>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="ViewPunch" type="t:float" minOccurs="0">
|
|
||||||
<xs:annotation><xs:documentation>View punch in radians for each shell fired</xs:documentation></xs:annotation>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="ReloadTime" type="t:double" minOccurs="0">
|
|
||||||
<xs:annotation><xs:documentation>Time it takes to load ONE SHELL into the weapon in seconds</xs:documentation></xs:annotation>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="Slot" type="WeaponSlotEnum" minOccurs="0"/>
|
|
||||||
<xs:element name="IsFiring" type="t:bool" minOccurs="0"/>
|
|
||||||
<xs:element name="TimeSinceLastFire" type="t:double" minOccurs="0"/>
|
|
||||||
</xs:all>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
</xs:schema>
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
|
||||||
<DoubleJump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="DoubleJump.xsd">
|
|
||||||
<DoubleJumpSpeed>4.0</DoubleJumpSpeed>
|
|
||||||
</DoubleJump>
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
|
|
||||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types">
|
|
||||||
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
|
|
||||||
|
|
||||||
<xs:element name="DoubleJump">
|
|
||||||
<xs:annotation><xs:documentation>Enables a Player to double jump.</xs:documentation></xs:annotation>
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:all>
|
|
||||||
<xs:element name="DoubleJumpSpeed" type="t:float" minOccurs="0">
|
|
||||||
<xs:annotation><xs:documentation>Vertical velocity set on double jump.</xs:documentation></xs:annotation>
|
|
||||||
</xs:element>
|
|
||||||
</xs:all>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
</xs:schema>
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||||
|
<Gamemode xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Gamemode.xsd">
|
||||||
|
<Gamemode><CapturePoints/></Gamemode>
|
||||||
|
<RoundTime>0</RoundTime>
|
||||||
|
<Running>false</Running>
|
||||||
|
</Gamemode>
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
|
||||||
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types">
|
||||||
|
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
|
||||||
|
|
||||||
|
<xs:complexType name="GamemodeEnum" mixed="true">
|
||||||
|
<xs:complexContent>
|
||||||
|
<xs:extension base="t:enum">
|
||||||
|
<xs:choice>
|
||||||
|
<xs:element name="CapturePoints" type="t:int" fixed="1" minOccurs="0"/>
|
||||||
|
</xs:choice>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:complexContent>
|
||||||
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:element name="Gamemode">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:all>
|
||||||
|
<xs:element name="Gamemode" type="GamemodeEnum" minOccurs="0"/>
|
||||||
|
<xs:element name="RoundTime" type="t:double" minOccurs="0"/>
|
||||||
|
<xs:element name="Running" type="t:bool" minOccurs="0"/>
|
||||||
|
</xs:all>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
</xs:schema>
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
<Physics xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Physics.xsd">
|
<Physics xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Physics.xsd">
|
||||||
<Velocity X="0" Y="0" Z="0"/>
|
<Velocity X="0" Y="0" Z="0"/>
|
||||||
<Gravity>true</Gravity>
|
<Gravity>true</Gravity>
|
||||||
|
<PrevOrigin X="-9876.5" Y="-9876.5" Z="-9876.5"/>
|
||||||
<IsOnGround>false</IsOnGround>
|
<IsOnGround>false</IsOnGround>
|
||||||
<VerticalStepHeight>0.33</VerticalStepHeight>
|
<VerticalStepHeight>0.33</VerticalStepHeight>
|
||||||
</Physics>
|
</Physics>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
<xs:annotation><xs:documentation>m/s^2</xs:documentation></xs:annotation>
|
<xs:annotation><xs:documentation>m/s^2</xs:documentation></xs:annotation>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
<xs:element name="Gravity" type="t:bool" minOccurs="0"/>
|
<xs:element name="Gravity" type="t:bool" minOccurs="0"/>
|
||||||
|
<xs:element name="PrevOrigin" type="t:Vector" minOccurs="0"/>
|
||||||
<xs:element name="IsOnGround" type="t:bool" minOccurs="0"/>
|
<xs:element name="IsOnGround" type="t:bool" minOccurs="0"/>
|
||||||
<xs:element name="VerticalStepHeight" type="t:double" minOccurs="0">
|
<xs:element name="VerticalStepHeight" type="t:double" minOccurs="0">
|
||||||
<xs:annotation><xs:documentation>The largest height of a "stair-step" that can be walked over</xs:documentation></xs:annotation>
|
<xs:annotation><xs:documentation>The largest height of a "stair-step" that can be walked over</xs:documentation></xs:annotation>
|
||||||
|
|||||||
@@ -2,7 +2,5 @@
|
|||||||
<Player xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Player.xsd">
|
<Player xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Player.xsd">
|
||||||
<MovementSpeed>3</MovementSpeed>
|
<MovementSpeed>3</MovementSpeed>
|
||||||
<CrouchSpeed>1.5</CrouchSpeed>
|
<CrouchSpeed>1.5</CrouchSpeed>
|
||||||
<JumpSpeed>4.0</JumpSpeed>
|
|
||||||
<CurrentWishDirection X="0" Y="0" Z="0"/>
|
<CurrentWishDirection X="0" Y="0" Z="0"/>
|
||||||
<CurrentWeapon></CurrentWeapon>
|
|
||||||
</Player>
|
</Player>
|
||||||
@@ -11,11 +11,7 @@
|
|||||||
<xs:all>
|
<xs:all>
|
||||||
<xs:element name="MovementSpeed" type="t:float" minOccurs="0"/>
|
<xs:element name="MovementSpeed" type="t:float" minOccurs="0"/>
|
||||||
<xs:element name="CrouchSpeed" type="t:float" minOccurs="0"/>
|
<xs:element name="CrouchSpeed" type="t:float" minOccurs="0"/>
|
||||||
<xs:element name="JumpSpeed" type="t:float" minOccurs="0">
|
|
||||||
<xs:annotation><xs:documentation>Vertical velocity set when jumping.</xs:documentation></xs:annotation>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="CurrentWishDirection" type="t:Vector" minOccurs="0"/>
|
<xs:element name="CurrentWishDirection" type="t:Vector" minOccurs="0"/>
|
||||||
<xs:element name="CurrentWeapon" type="t:string" minOccurs="0"/>
|
|
||||||
</xs:all>
|
</xs:all>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
|
||||||
<SpriteIndicator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SpriteIndicator.xsd">
|
|
||||||
<MinScale>10</MinScale>
|
|
||||||
<VisibleForSingleTeamOnly>false</VisibleForSingleTeamOnly>
|
|
||||||
</SpriteIndicator>
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
|
|
||||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types">
|
|
||||||
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
|
|
||||||
|
|
||||||
<xs:element name="SpriteIndicator">
|
|
||||||
<xs:annotation>
|
|
||||||
<xs:documentation>Billbord a Sprite around global Y axis</xs:documentation>
|
|
||||||
</xs:annotation>
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:all>
|
|
||||||
<xs:element name="MinScale" type="t:double" minOccurs="0"/>
|
|
||||||
<xs:element name="VisibleForSingleTeamOnly" type="t:bool" minOccurs="0">
|
|
||||||
<xs:annotation><xs:documentation>Add a Team component to this Entity or Parent to make it visible only for that team</xs:documentation></xs:annotation>
|
|
||||||
</xs:element>
|
|
||||||
</xs:all>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
</xs:schema>
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||||
|
<Trigger xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Trigger.xsd">
|
||||||
|
</Trigger>
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
|
||||||
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types">
|
||||||
|
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
|
||||||
|
|
||||||
|
<xs:element name="Weapon">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:all>
|
||||||
|
<xs:element name="MagSize" type="t:int" minOccurs="0"/>
|
||||||
|
<xs:element name="MaxAmmo" type="t:int" minOccurs="0"/>
|
||||||
|
<xs:element name="CurrentAmmoInMag" type="t:int" minOccurs="0"/>
|
||||||
|
<xs:element name="CurrentAmmo" type="t:int" minOccurs="0"/>
|
||||||
|
<xs:element name="RPM" type="t:double" minOccurs="0"/>
|
||||||
|
</xs:all>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
</xs:schema>
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
|
||||||
<WeaponAttachment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="WeaponAttachment.xsd">
|
|
||||||
<Weapon></Weapon>
|
|
||||||
<Person><FirstPerson/></Person>
|
|
||||||
</WeaponAttachment>
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
|
|
||||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types">
|
|
||||||
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
|
|
||||||
|
|
||||||
<xs:complexType name="PersonEnum" mixed="true">
|
|
||||||
<xs:complexContent>
|
|
||||||
<xs:extension base="t:enum">
|
|
||||||
<xs:choice>
|
|
||||||
<xs:element name="FirstPerson" type="t:int" fixed="0" minOccurs="0"/>
|
|
||||||
<xs:element name="ThirdPerson" type="t:int" fixed="1" minOccurs="0"/>
|
|
||||||
</xs:choice>
|
|
||||||
</xs:extension>
|
|
||||||
</xs:complexContent>
|
|
||||||
</xs:complexType>
|
|
||||||
|
|
||||||
<xs:element name="WeaponAttachment">
|
|
||||||
<xs:annotation><xs:documentation>Combine with a spawner to define a weapon attachment point</xs:documentation></xs:annotation>
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:all>
|
|
||||||
<xs:element name="Weapon" type="t:string" minOccurs="0">
|
|
||||||
<xs:annotation><xs:documentation>The weapon component type this attachment refers to</xs:documentation></xs:annotation>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="Person" type="PersonEnum" minOccurs="0"/>
|
|
||||||
</xs:all>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
</xs:schema>
|
|
||||||
@@ -2,18 +2,18 @@
|
|||||||
<Entity xmlns:c="components" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../Types/Entity.xsd">
|
<Entity xmlns:c="components" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../Types/Entity.xsd">
|
||||||
|
|
||||||
<Components>
|
<Components>
|
||||||
|
<c:AABB/>
|
||||||
<c:AmmoPickup/>
|
<c:AmmoPickup/>
|
||||||
<c:Model>
|
<c:Model>
|
||||||
<Resource>Models/Props/PickUps/AmmoPickUp.mesh</Resource>
|
<Resource>Models/Props/PickUps/AmmoPickUp.mesh</Resource>
|
||||||
</c:Model>
|
</c:Model>
|
||||||
<c:RaptorCopter>
|
<c:RaptorCopter>
|
||||||
<Speed>8</Speed>
|
<Speed>0.1</Speed>
|
||||||
<Axis X="0" Y="0.100000001" Z="0"/>
|
<Axis X="0" Y="1" Z="0"/>
|
||||||
</c:RaptorCopter>
|
</c:RaptorCopter>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0" Y="2.36784196" Z="0"/>
|
<Position X="0" Y="1" Z="0"/>
|
||||||
<Scale X="0.600000024" Y="0.600000024" Z="0.600000024"/>
|
<Scale X="0.3" Y="0.3" Z="0.3"/>
|
||||||
<Orientation X="0" Y="18717.9453" Z="0"/>
|
|
||||||
</c:Transform>
|
</c:Transform>
|
||||||
<c:Trigger/>
|
<c:Trigger/>
|
||||||
</Components>
|
</Components>
|
||||||
|
|||||||
@@ -1,99 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
|
||||||
<Entity name="WeaponModel" xmlns:c="components" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../Types/Entity.xsd">
|
|
||||||
|
|
||||||
<Components>
|
|
||||||
<c:BoneAttachment>
|
|
||||||
<BoneName>R_Arm_Weapon_Joint</BoneName>
|
|
||||||
</c:BoneAttachment>
|
|
||||||
<c:Model>
|
|
||||||
<Resource>Models/Weapons/Blue/AssaultWeaponBlue.mesh</Resource>
|
|
||||||
</c:Model>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0.12043038" Y="-0.244988307" Z="-0.181454808"/>
|
|
||||||
<Orientation X="0.010404544" Y="-0.00268173823" Z="0.0428441577"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
|
|
||||||
<Children>
|
|
||||||
<Entity name="WeaponMuzzle">
|
|
||||||
<Components>
|
|
||||||
<c:Spawner>
|
|
||||||
<EntityFile>Schema/Entities/RayBlue.xml</EntityFile>
|
|
||||||
</c:Spawner>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0.00325386273" Y="0.0970000029" Z="-0.843000054"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="FirstPersonReloadSpawner">
|
|
||||||
<Components>
|
|
||||||
<c:Spawner>
|
|
||||||
<EntityFile>Schema/Entities/ReloadEffectView.xml</EntityFile>
|
|
||||||
</c:Spawner>
|
|
||||||
<c:Transform/>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="AmmunitionHUD">
|
|
||||||
<Components>
|
|
||||||
<c:AmmunitionHUD/>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="-0.0430000015" Y="0.131501317" Z="-0.0670000017"/>
|
|
||||||
<Scale X="0.400000006" Y="0.400000006" Z="0.400000006"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children>
|
|
||||||
<Entity name="AmmunitionHUDBackground">
|
|
||||||
<Components>
|
|
||||||
<c:Sprite>
|
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="0.588235319" B="0" G="0" R="0"/>
|
|
||||||
</c:Sprite>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0" Y="0" Z="-0.00200000009"/>
|
|
||||||
<Scale X="0.119999997" Y="0.119999997" Z="0.119999997"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="AmmunitionText">
|
|
||||||
<Components>
|
|
||||||
<c:Transform/>
|
|
||||||
</Components>
|
|
||||||
<Children>
|
|
||||||
<Entity name="MagazineAmmo">
|
|
||||||
<Components>
|
|
||||||
<c:Text>
|
|
||||||
<Content>32</Content>
|
|
||||||
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
|
||||||
<Color A="1" B="3.92156863" G="1.17647064" R="0"/>
|
|
||||||
</c:Text>
|
|
||||||
<c:Transform>
|
|
||||||
<Scale X="0.0599999987" Y="0.0599999987" Z="0.0599999987"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="Ammo">
|
|
||||||
<Components>
|
|
||||||
<c:Text>
|
|
||||||
<Content>360</Content>
|
|
||||||
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
|
||||||
<Color A="1" B="3.92156863" G="1.17647064" R="0"/>
|
|
||||||
</c:Text>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="5.2833886e-05" Y="-0.0407950208" Z="0"/>
|
|
||||||
<Scale X="0.0399999991" Y="0.0399999991" Z="0.0399999991"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
</Children>
|
|
||||||
</Entity>
|
|
||||||
</Children>
|
|
||||||
</Entity>
|
|
||||||
</Children>
|
|
||||||
|
|
||||||
</Entity>
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
|
||||||
<Entity name="ThirdPersonWeaponModel" xmlns:c="components" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../Types/Entity.xsd">
|
|
||||||
|
|
||||||
<Components>
|
|
||||||
<c:BoneAttachment>
|
|
||||||
<BoneName>R_Arm_Weapon_Joint</BoneName>
|
|
||||||
</c:BoneAttachment>
|
|
||||||
<c:Model>
|
|
||||||
<Resource>Models/Weapons/Blue/AssaultWeaponBlue.mesh</Resource>
|
|
||||||
</c:Model>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0.163429111" Y="1.0235405" Z="-0.215489209"/>
|
|
||||||
<Orientation X="-0.0631071255" Y="-0.0576644838" Z="0.118255548"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
|
|
||||||
<Children>
|
|
||||||
<Entity name="WeaponMuzzle">
|
|
||||||
<Components>
|
|
||||||
<c:Spawner>
|
|
||||||
<EntityFile>Schema/Entities/RayBlue.xml</EntityFile>
|
|
||||||
</c:Spawner>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0.00644115033" Y="0.096679531" Z="-0.436609417"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="ThirdPersonReloadSpawner">
|
|
||||||
<Components>
|
|
||||||
<c:Spawner>
|
|
||||||
<EntityFile>Schema/Entities/ReloadEffectWorld.xml</EntityFile>
|
|
||||||
</c:Spawner>
|
|
||||||
<c:Transform/>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
</Children>
|
|
||||||
|
|
||||||
</Entity>
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
|
||||||
<Entity name="Shield" xmlns:c="components" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../Types/Entity.xsd">
|
|
||||||
|
|
||||||
<Components>
|
|
||||||
<c:Transform/>
|
|
||||||
</Components>
|
|
||||||
|
|
||||||
<Children>
|
|
||||||
<Entity name="Shield">
|
|
||||||
<Components>
|
|
||||||
<c:Model>
|
|
||||||
<Resource>Models/Core/UnitPlane.mesh</Resource>
|
|
||||||
</c:Model>
|
|
||||||
<c:Shield/>
|
|
||||||
<c:Transform>
|
|
||||||
<Scale X="1.11800003" Y="0.0320000015" Z="1.9180001"/>
|
|
||||||
<Orientation X="-1.57079995" Y="0" Z="0"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="VisibleSide">
|
|
||||||
<Components>
|
|
||||||
<c:Shielded/>
|
|
||||||
<c:Model>
|
|
||||||
<Resource>Models/Core/UnitHexagon.mesh</Resource>
|
|
||||||
<Color A="0" B="1" G="0" R="0"/>
|
|
||||||
<Transparent>true</Transparent>
|
|
||||||
</c:Model>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0" Y="0" Z="0.0179871861"/>
|
|
||||||
<Scale X="1.01900005" Y="0.0120000001" Z="1.91000009"/>
|
|
||||||
<Orientation X="-1.57079995" Y="0" Z="0"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
</Children>
|
|
||||||
|
|
||||||
</Entity>
|
|
||||||
@@ -1,99 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
|
||||||
<Entity name="WeaponModel" xmlns:c="components" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../Types/Entity.xsd">
|
|
||||||
|
|
||||||
<Components>
|
|
||||||
<c:BoneAttachment>
|
|
||||||
<BoneName>R_Arm_Weapon_Joint</BoneName>
|
|
||||||
<PositionOffset X="0" Y="0.0480000004" Z="-0.183000013"/>
|
|
||||||
</c:BoneAttachment>
|
|
||||||
<c:Model>
|
|
||||||
<Resource>Models/Weapons/Blue/DefenderGunBlue.mesh</Resource>
|
|
||||||
</c:Model>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0.120430306" Y="0.775375426" Z="1.36542225"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
|
|
||||||
<Children>
|
|
||||||
<Entity name="WeaponMuzzle">
|
|
||||||
<Components>
|
|
||||||
<c:Spawner>
|
|
||||||
<EntityFile>Schema/Entities/RayBlue.xml</EntityFile>
|
|
||||||
</c:Spawner>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0.00191565475" Y="0.0324025005" Z="-0.2021029"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="FirstPersonReloadSpawner">
|
|
||||||
<Components>
|
|
||||||
<c:Spawner>
|
|
||||||
<EntityFile>Schema/Entities/ReloadEffectView.xml</EntityFile>
|
|
||||||
</c:Spawner>
|
|
||||||
<c:Transform/>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="AmmunitionHUD">
|
|
||||||
<Components>
|
|
||||||
<c:AmmunitionHUD/>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="-0.0490000024" Y="0.0520000011" Z="-0.063000001"/>
|
|
||||||
<Scale X="0.400000006" Y="0.400000006" Z="0.400000006"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children>
|
|
||||||
<Entity name="AmmunitionHUDBackground">
|
|
||||||
<Components>
|
|
||||||
<c:Sprite>
|
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="0.588235319" B="0" G="0" R="0"/>
|
|
||||||
</c:Sprite>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0" Y="0" Z="-0.00200000009"/>
|
|
||||||
<Scale X="0.119999997" Y="0.119999997" Z="0.119999997"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="AmmunitionText">
|
|
||||||
<Components>
|
|
||||||
<c:Transform/>
|
|
||||||
</Components>
|
|
||||||
<Children>
|
|
||||||
<Entity name="MagazineAmmo">
|
|
||||||
<Components>
|
|
||||||
<c:Text>
|
|
||||||
<Content>32</Content>
|
|
||||||
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
|
||||||
<Color A="1" B="3.92156863" G="1.17647064" R="0"/>
|
|
||||||
</c:Text>
|
|
||||||
<c:Transform>
|
|
||||||
<Scale X="0.0599999987" Y="0.0599999987" Z="0.0599999987"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="Ammo">
|
|
||||||
<Components>
|
|
||||||
<c:Text>
|
|
||||||
<Content>360</Content>
|
|
||||||
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
|
||||||
<Color A="1" B="3.92156863" G="1.17647064" R="0"/>
|
|
||||||
</c:Text>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="5.2833886e-05" Y="-0.0407950208" Z="0"/>
|
|
||||||
<Scale X="0.0399999991" Y="0.0399999991" Z="0.0399999991"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
</Children>
|
|
||||||
</Entity>
|
|
||||||
</Children>
|
|
||||||
</Entity>
|
|
||||||
</Children>
|
|
||||||
|
|
||||||
</Entity>
|
|
||||||
@@ -1,99 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
|
||||||
<Entity name="WeaponModel" xmlns:c="components" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../Types/Entity.xsd">
|
|
||||||
|
|
||||||
<Components>
|
|
||||||
<c:BoneAttachment>
|
|
||||||
<BoneName>R_Arm_Weapon_Joint</BoneName>
|
|
||||||
<PositionOffset X="0" Y="0.0480000004" Z="-0.183000013"/>
|
|
||||||
</c:BoneAttachment>
|
|
||||||
<c:Model>
|
|
||||||
<Resource>Models/Weapons/Red/DefenderGunRed.mesh</Resource>
|
|
||||||
</c:Model>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0.120430306" Y="0.775375426" Z="1.36542225"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
|
|
||||||
<Children>
|
|
||||||
<Entity name="WeaponMuzzle">
|
|
||||||
<Components>
|
|
||||||
<c:Spawner>
|
|
||||||
<EntityFile>Schema/Entities/RayRed.xml</EntityFile>
|
|
||||||
</c:Spawner>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0.00191565475" Y="0.0324025005" Z="-0.2021029"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="FirstPersonReloadSpawner">
|
|
||||||
<Components>
|
|
||||||
<c:Spawner>
|
|
||||||
<EntityFile>Schema/Entities/ReloadEffectView.xml</EntityFile>
|
|
||||||
</c:Spawner>
|
|
||||||
<c:Transform/>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="AmmunitionHUD">
|
|
||||||
<Components>
|
|
||||||
<c:AmmunitionHUD/>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="-0.0490000024" Y="0.0520000011" Z="-0.063000001"/>
|
|
||||||
<Scale X="0.400000006" Y="0.400000006" Z="0.400000006"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children>
|
|
||||||
<Entity name="AmmunitionHUDBackground">
|
|
||||||
<Components>
|
|
||||||
<c:Sprite>
|
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="0.588235319" B="0" G="0" R="0"/>
|
|
||||||
</c:Sprite>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0" Y="0" Z="-0.00200000009"/>
|
|
||||||
<Scale X="0.119999997" Y="0.119999997" Z="0.119999997"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="AmmunitionText">
|
|
||||||
<Components>
|
|
||||||
<c:Transform/>
|
|
||||||
</Components>
|
|
||||||
<Children>
|
|
||||||
<Entity name="MagazineAmmo">
|
|
||||||
<Components>
|
|
||||||
<c:Text>
|
|
||||||
<Content>32</Content>
|
|
||||||
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
|
||||||
<Color A="1" B="3.92156863" G="1.17647064" R="0"/>
|
|
||||||
</c:Text>
|
|
||||||
<c:Transform>
|
|
||||||
<Scale X="0.0599999987" Y="0.0599999987" Z="0.0599999987"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="Ammo">
|
|
||||||
<Components>
|
|
||||||
<c:Text>
|
|
||||||
<Content>360</Content>
|
|
||||||
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
|
||||||
<Color A="1" B="3.92156863" G="1.17647064" R="0"/>
|
|
||||||
</c:Text>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="5.2833886e-05" Y="-0.0407950208" Z="0"/>
|
|
||||||
<Scale X="0.0399999991" Y="0.0399999991" Z="0.0399999991"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
</Children>
|
|
||||||
</Entity>
|
|
||||||
</Children>
|
|
||||||
</Entity>
|
|
||||||
</Children>
|
|
||||||
|
|
||||||
</Entity>
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
|
||||||
<Entity name="ThirdPersonWeaponModel" xmlns:c="components" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../Types/Entity.xsd">
|
|
||||||
|
|
||||||
<Components>
|
|
||||||
<c:BoneAttachment>
|
|
||||||
<BoneName>R_Arm_Weapon_Joint</BoneName>
|
|
||||||
<PositionOffset X="0" Y="0.0320000015" Z="-0.165000007"/>
|
|
||||||
</c:BoneAttachment>
|
|
||||||
<c:Model>
|
|
||||||
<Resource>Models/Weapons/Blue/DefenderGunBlue.mesh</Resource>
|
|
||||||
</c:Model>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0.162026152" Y="1.05794585" Z="-0.380744517"/>
|
|
||||||
<Orientation X="-0.0628969446" Y="-0.0509683639" Z="0.118739031"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
|
|
||||||
<Children>
|
|
||||||
<Entity name="WeaponMuzzle">
|
|
||||||
<Components>
|
|
||||||
<c:Spawner>
|
|
||||||
<EntityFile>Schema/Entities/RayBlue.xml</EntityFile>
|
|
||||||
</c:Spawner>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0.000284185546" Y="0.0318552479" Z="-0.193328083"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="ThirdPersonReloadSpawner">
|
|
||||||
<Components>
|
|
||||||
<c:Spawner>
|
|
||||||
<EntityFile>Schema/Entities/ReloadEffectWorld.xml</EntityFile>
|
|
||||||
</c:Spawner>
|
|
||||||
<c:Transform/>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
</Children>
|
|
||||||
|
|
||||||
</Entity>
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
|
||||||
<Entity name="ThirdPersonWeaponModel" xmlns:c="components" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../Types/Entity.xsd">
|
|
||||||
|
|
||||||
<Components>
|
|
||||||
<c:BoneAttachment>
|
|
||||||
<BoneName>R_Arm_Weapon_Joint</BoneName>
|
|
||||||
<PositionOffset X="0" Y="0.0320000015" Z="-0.165000007"/>
|
|
||||||
</c:BoneAttachment>
|
|
||||||
<c:Model>
|
|
||||||
<Resource>Models/Weapons/Red/DefenderGunRed.mesh</Resource>
|
|
||||||
</c:Model>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0.162026152" Y="1.05794585" Z="-0.380744517"/>
|
|
||||||
<Orientation X="-0.0628969446" Y="-0.0509683639" Z="0.118739031"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
|
|
||||||
<Children>
|
|
||||||
<Entity name="WeaponMuzzle">
|
|
||||||
<Components>
|
|
||||||
<c:Spawner>
|
|
||||||
<EntityFile>Schema/Entities/RayRed.xml</EntityFile>
|
|
||||||
</c:Spawner>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0.000284185546" Y="0.0318552479" Z="-0.193328083"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="ThirdPersonReloadSpawner">
|
|
||||||
<Components>
|
|
||||||
<c:Spawner>
|
|
||||||
<EntityFile>Schema/Entities/ReloadEffectWorld.xml</EntityFile>
|
|
||||||
</c:Spawner>
|
|
||||||
<c:Transform/>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
</Children>
|
|
||||||
|
|
||||||
</Entity>
|
|
||||||
@@ -2,18 +2,18 @@
|
|||||||
<Entity xmlns:c="components" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../Types/Entity.xsd">
|
<Entity xmlns:c="components" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../Types/Entity.xsd">
|
||||||
|
|
||||||
<Components>
|
<Components>
|
||||||
|
<c:AABB/>
|
||||||
<c:HealthPickup/>
|
<c:HealthPickup/>
|
||||||
<c:Model>
|
<c:Model>
|
||||||
<Resource>Models/Props/PickUps/HealthPickUp.mesh</Resource>
|
<Resource>Models/Props/PickUps/HealthPickUp.mesh</Resource>
|
||||||
</c:Model>
|
</c:Model>
|
||||||
<c:RaptorCopter>
|
<c:RaptorCopter>
|
||||||
<Speed>8</Speed>
|
<Speed>0.1</Speed>
|
||||||
<Axis X="0" Y="0.100000001" Z="0"/>
|
<Axis X="0" Y="1" Z="0"/>
|
||||||
</c:RaptorCopter>
|
</c:RaptorCopter>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0" Y="2.36784196" Z="0"/>
|
<Position X="0" Y="1" Z="0"/>
|
||||||
<Scale X="0.600000024" Y="0.600000024" Z="0.600000024"/>
|
<Scale X="0.3" Y="0.3" Z="0.3"/>
|
||||||
<Orientation X="0" Y="18767.0273" Z="0"/>
|
|
||||||
</c:Transform>
|
</c:Transform>
|
||||||
<c:Trigger/>
|
<c:Trigger/>
|
||||||
</Components>
|
</Components>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<Components>
|
<Components>
|
||||||
<c:PlayerSpawn/>
|
<c:PlayerSpawn/>
|
||||||
<c:Spawner>
|
<c:Spawner>
|
||||||
<EntityFile>Schema/Entities/PlayerRed.xml</EntityFile>
|
<EntityFile>Schema/Entities/Player.xml</EntityFile>
|
||||||
</c:Spawner>
|
</c:Spawner>
|
||||||
<c:Team>
|
<c:Team>
|
||||||
<Team>
|
<Team>
|
||||||
@@ -118,6 +118,257 @@
|
|||||||
</Entity>
|
</Entity>
|
||||||
</Children>
|
</Children>
|
||||||
</Entity>
|
</Entity>
|
||||||
|
<Entity name="Player">
|
||||||
|
<Components>
|
||||||
|
<c:AABB>
|
||||||
|
<Origin X="0" Y="0.772000015" Z="0"/>
|
||||||
|
<Size X="1" Y="1.60000002" Z="1"/>
|
||||||
|
</c:AABB>
|
||||||
|
<c:AssaultWeapon>
|
||||||
|
<RPM>600</RPM>
|
||||||
|
</c:AssaultWeapon>
|
||||||
|
<c:Collidable/>
|
||||||
|
<c:DashAbility/>
|
||||||
|
<c:Health/>
|
||||||
|
<c:Physics>
|
||||||
|
<Velocity X="2.30999646e-23" Y="0" Z="1.05272533e-23"/>
|
||||||
|
</c:Physics>
|
||||||
|
<c:Player>
|
||||||
|
<MovementSpeed>5</MovementSpeed>
|
||||||
|
</c:Player>
|
||||||
|
<c:Team>
|
||||||
|
<Team>
|
||||||
|
<Red/>
|
||||||
|
</Team>
|
||||||
|
</c:Team>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="0" Y="0.0288832653" Z="2.64837074"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children>
|
||||||
|
<Entity name="Camera">
|
||||||
|
<Components>
|
||||||
|
<c:Camera/>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="0" Y="1.27700007" Z="0"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children>
|
||||||
|
<Entity name="PlayerName">
|
||||||
|
<Components>
|
||||||
|
<c:Text>
|
||||||
|
<Resource>Fonts/DroidSans.ttf,100</Resource>
|
||||||
|
<Color A="1" B="0" G="1" R="0"/>
|
||||||
|
</c:Text>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="0.100000001" Y="0.248000011" Z="-0.248000011"/>
|
||||||
|
<Scale X="0.100000001" Y="0.113000005" Z="0.5"/>
|
||||||
|
<Orientation X="0" Y="3.14199996" Z="0"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
<Entity name="CameraModel">
|
||||||
|
<Components>
|
||||||
|
<c:Model>
|
||||||
|
<Resource>Models/Widgets/Camera.mesh</Resource>
|
||||||
|
<Visible>false</Visible>
|
||||||
|
</c:Model>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="0" Y="0.0331346765" Z="-0.0792061687"/>
|
||||||
|
<Scale X="1.30000007" Y="1.50000012" Z="1"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
<Entity name="HUD">
|
||||||
|
<Components>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="0" Y="0" Z="-0.5"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children>
|
||||||
|
<Entity name="HealthBar">
|
||||||
|
<Components>
|
||||||
|
<c:Fill>
|
||||||
|
<Percentage>1</Percentage>
|
||||||
|
<Color A="0" B="1" G="0" R="0"/>
|
||||||
|
</c:Fill>
|
||||||
|
<c:HealthHUD/>
|
||||||
|
<c:Model>
|
||||||
|
<Resource>Models/Core/UnitHexagon.mesh</Resource>
|
||||||
|
<Color A="1" B="0.70588237" G="0.70588237" R="0.70588237"/>
|
||||||
|
</c:Model>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="-0.383000016" Y="-0.185000002" Z="0"/>
|
||||||
|
<Scale X="0.150000006" Y="0.150000006" Z="0.150000006"/>
|
||||||
|
<Orientation X="0" Y="0.594000041" Z="0"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
<Entity name="Crosshair">
|
||||||
|
<Components>
|
||||||
|
<c:Sprite>
|
||||||
|
<DiffuseTexture>Textures/Weapons/Crosshair/SmallThickHoleDot.png</DiffuseTexture>
|
||||||
|
<DepthSort>false</DepthSort>
|
||||||
|
</c:Sprite>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="0" Y="0" Z="0.200000003"/>
|
||||||
|
<Scale X="0.0250000004" Y="0.0250000004" Z="0"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
</Children>
|
||||||
|
</Entity>
|
||||||
|
<Entity name="Hands">
|
||||||
|
<Components>
|
||||||
|
<c:Animation>
|
||||||
|
<AnimationName1>Idle</AnimationName1>
|
||||||
|
<Time1>1.9569972344146196</Time1>
|
||||||
|
<Speed1>1</Speed1>
|
||||||
|
</c:Animation>
|
||||||
|
<c:Model>
|
||||||
|
<Resource>Models/Characters/Assault/FirstPerson.mesh</Resource>
|
||||||
|
<Transparent>true</Transparent>
|
||||||
|
</c:Model>
|
||||||
|
<c:Transform/>
|
||||||
|
</Components>
|
||||||
|
<Children>
|
||||||
|
<Entity name="WeaponModel">
|
||||||
|
<Components>
|
||||||
|
<c:BoneAttachment>
|
||||||
|
<BoneName>R_Arm_Weapon_Joint</BoneName>
|
||||||
|
</c:BoneAttachment>
|
||||||
|
<c:Model>
|
||||||
|
<Resource>Models/Weapons/Blue/AssaultWeaponBlue.mesh</Resource>
|
||||||
|
<Transparent>true</Transparent>
|
||||||
|
</c:Model>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="0.120748013" Y="-0.228470564" Z="-0.151475638"/>
|
||||||
|
<Orientation X="0.010404693" Y="-0.00268176314" Z="0.0428441502"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children>
|
||||||
|
<Entity name="WeaponMuzzle">
|
||||||
|
<Components>
|
||||||
|
<c:Spawner>
|
||||||
|
<EntityFile>Schema/Entities/RayBlue.xml</EntityFile>
|
||||||
|
</c:Spawner>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="0.00325386273" Y="0.0970000029" Z="-0.843000054"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
</Children>
|
||||||
|
</Entity>
|
||||||
|
<Entity name="FirstPersonReloadSpawner">
|
||||||
|
<Components>
|
||||||
|
<c:Spawner>
|
||||||
|
<EntityFile>Schema/Entities/WeaponReloadEffect.xml</EntityFile>
|
||||||
|
</c:Spawner>
|
||||||
|
<c:Transform/>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
</Children>
|
||||||
|
</Entity>
|
||||||
|
</Children>
|
||||||
|
</Entity>
|
||||||
|
<Entity name="ThirdPersonCamera">
|
||||||
|
<Components>
|
||||||
|
<c:Camera/>
|
||||||
|
<c:Model>
|
||||||
|
<Resource>Models/Widgets/Camera.mesh</Resource>
|
||||||
|
<Visible>false</Visible>
|
||||||
|
</c:Model>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="-0.284000009" Y="1.83800006" Z="1.18900001"/>
|
||||||
|
<Orientation X="5.95600033" Y="0" Z="0"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
<Entity name="PlayerModel">
|
||||||
|
<Components>
|
||||||
|
<c:Animation>
|
||||||
|
<AnimationName1>Idle</AnimationName1>
|
||||||
|
<Time1>1.8055945618467364</Time1>
|
||||||
|
<Speed1>1</Speed1>
|
||||||
|
</c:Animation>
|
||||||
|
<c:AnimationOffset>
|
||||||
|
<AnimationName>AimRifle</AnimationName>
|
||||||
|
<Time>0.5</Time>
|
||||||
|
</c:AnimationOffset>
|
||||||
|
<c:HiddenForLocalPlayer/>
|
||||||
|
<c:Model>
|
||||||
|
<Resource>Models/Characters/Assault/AssaultAnimations.mesh</Resource>
|
||||||
|
<Color A="1" B="0" G="0" R="1"/>
|
||||||
|
</c:Model>
|
||||||
|
<c:Transform/>
|
||||||
|
</Components>
|
||||||
|
<Children>
|
||||||
|
<Entity name="ThirdPersonWeaponModel">
|
||||||
|
<Components>
|
||||||
|
<c:BoneAttachment>
|
||||||
|
<BoneName>R_Arm_Weapon_Joint</BoneName>
|
||||||
|
</c:BoneAttachment>
|
||||||
|
<c:Model>
|
||||||
|
<Resource>Models/Weapons/Blue/AssaultWeaponBlue.mesh</Resource>
|
||||||
|
<Visible>false</Visible>
|
||||||
|
</c:Model>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="0.158578917" Y="1.02878916" Z="-0.215411991"/>
|
||||||
|
<Orientation X="-0.0626687407" Y="-0.0361274257" Z="0.120101407"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children>
|
||||||
|
<Entity name="ThirdPersonWeaponMuzzle">
|
||||||
|
<Components>
|
||||||
|
<c:Spawner>
|
||||||
|
<EntityFile>Schema/Entities/RayBlue.xml</EntityFile>
|
||||||
|
</c:Spawner>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="0.00644115033" Y="0.096679531" Z="-0.436609417"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
</Children>
|
||||||
|
</Entity>
|
||||||
|
</Children>
|
||||||
|
</Entity>
|
||||||
|
<Entity name="AABBStanding">
|
||||||
|
<Components>
|
||||||
|
<c:Model>
|
||||||
|
<Resource>Models/Core/UnitCube.mesh</Resource>
|
||||||
|
<Color A="0.427450985" B="1" G="1" R="1"/>
|
||||||
|
<Visible>false</Visible>
|
||||||
|
</c:Model>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="0" Y="0.772000015" Z="0"/>
|
||||||
|
<Scale X="1" Y="1.60000002" Z="1"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
<Entity name="AABBCrouching">
|
||||||
|
<Components>
|
||||||
|
<c:Model>
|
||||||
|
<Resource>Models/Core/UnitCube.mesh</Resource>
|
||||||
|
<Color A="0.745098054" B="1" G="0" R="1"/>
|
||||||
|
<Visible>false</Visible>
|
||||||
|
</c:Model>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="0" Y="0.772000015" Z="0"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
</Children>
|
||||||
|
</Entity>
|
||||||
</Children>
|
</Children>
|
||||||
|
|
||||||
</Entity>
|
</Entity>
|
||||||
|
|||||||
@@ -7,40 +7,29 @@
|
|||||||
<Size X="1" Y="1.60000002" Z="1"/>
|
<Size X="1" Y="1.60000002" Z="1"/>
|
||||||
</c:AABB>
|
</c:AABB>
|
||||||
<c:AssaultWeapon>
|
<c:AssaultWeapon>
|
||||||
<Slot>
|
<RPM>600</RPM>
|
||||||
<Secondary/>
|
|
||||||
</Slot>
|
|
||||||
</c:AssaultWeapon>
|
</c:AssaultWeapon>
|
||||||
<c:Collidable/>
|
<c:Collidable/>
|
||||||
<c:DefenderWeapon>
|
<c:DashAbility/>
|
||||||
<TimeSinceLastFire>52.867678870419283</TimeSinceLastFire>
|
|
||||||
</c:DefenderWeapon>
|
|
||||||
<c:DoubleJump/>
|
|
||||||
<c:Health/>
|
<c:Health/>
|
||||||
<c:Physics>
|
<c:Physics>
|
||||||
<Velocity X="2.30999646e-23" Y="0" Z="1.05272533e-23"/>
|
<Velocity X="2.30999646e-23" Y="0" Z="1.05272533e-23"/>
|
||||||
</c:Physics>
|
</c:Physics>
|
||||||
<c:Player>
|
<c:Player>
|
||||||
<MovementSpeed>5</MovementSpeed>
|
<MovementSpeed>5</MovementSpeed>
|
||||||
<CurrentWeapon></CurrentWeapon>
|
|
||||||
</c:Player>
|
</c:Player>
|
||||||
<c:Team>
|
<c:Team>
|
||||||
<Team>
|
<Team>
|
||||||
<Blue/>
|
<Blue/>
|
||||||
</Team>
|
</Team>
|
||||||
</c:Team>
|
</c:Team>
|
||||||
<c:Transform>
|
<c:Transform/>
|
||||||
<Position X="-1.42731023" Y="0.0288832653" Z="3.63052702"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
</Components>
|
||||||
|
|
||||||
<Children>
|
<Children>
|
||||||
<Entity name="Camera">
|
<Entity name="Camera">
|
||||||
<Components>
|
<Components>
|
||||||
<c:Camera>
|
<c:Camera/>
|
||||||
<NearClip>0.10000000149011612</NearClip>
|
|
||||||
<FarClip>300</FarClip>
|
|
||||||
</c:Camera>
|
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0" Y="1.27700007" Z="0"/>
|
<Position X="0" Y="1.27700007" Z="0"/>
|
||||||
</c:Transform>
|
</c:Transform>
|
||||||
@@ -71,7 +60,6 @@
|
|||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Weapons/Crosshair/SmallThickHoleDot.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Weapons/Crosshair/SmallThickHoleDot.png</DiffuseTexture>
|
||||||
<DepthSort>false</DepthSort>
|
<DepthSort>false</DepthSort>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0" Y="0" Z="0.200000003"/>
|
<Position X="0" Y="0" Z="0.200000003"/>
|
||||||
@@ -122,7 +110,6 @@
|
|||||||
</c:Fill>
|
</c:Fill>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/HealthHUD3.png</DiffuseTexture>
|
<DiffuseTexture>Textures/HealthHUD3.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="0.588235319" B="0" G="0" R="0"/>
|
<Color A="0.588235319" B="0" G="0" R="0"/>
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:HealthHUD/>
|
<c:HealthHUD/>
|
||||||
@@ -148,7 +135,6 @@
|
|||||||
<Components>
|
<Components>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="0.300000012" B="1" G="1" R="1"/>
|
<Color A="0.300000012" B="1" G="1" R="1"/>
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
@@ -166,7 +152,6 @@
|
|||||||
</c:Fill>
|
</c:Fill>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0" Y="0" Z="0.00999999978"/>
|
<Position X="0" Y="0" Z="0.00999999978"/>
|
||||||
@@ -182,7 +167,6 @@
|
|||||||
<Components>
|
<Components>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="0.300000012" B="1" G="1" R="1"/>
|
<Color A="0.300000012" B="1" G="1" R="1"/>
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
@@ -201,7 +185,6 @@
|
|||||||
</c:Fill>
|
</c:Fill>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0" Y="0" Z="0.00999999978"/>
|
<Position X="0" Y="0" Z="0.00999999978"/>
|
||||||
@@ -217,7 +200,6 @@
|
|||||||
<Components>
|
<Components>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="0.699999988" B="1" G="0.200000003" R="0"/>
|
<Color A="0.699999988" B="1" G="0.200000003" R="0"/>
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
@@ -235,7 +217,6 @@
|
|||||||
</c:Fill>
|
</c:Fill>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0" Y="0" Z="0.00999999978"/>
|
<Position X="0" Y="0" Z="0.00999999978"/>
|
||||||
@@ -251,7 +232,6 @@
|
|||||||
<Components>
|
<Components>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="0.300000012" B="1" G="1" R="1"/>
|
<Color A="0.300000012" B="1" G="1" R="1"/>
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
@@ -269,7 +249,6 @@
|
|||||||
</c:Fill>
|
</c:Fill>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0" Y="0" Z="0.00999999978"/>
|
<Position X="0" Y="0" Z="0.00999999978"/>
|
||||||
@@ -285,7 +264,6 @@
|
|||||||
<Components>
|
<Components>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="0.699999988" B="0" G="0.200000003" R="1"/>
|
<Color A="0.699999988" B="0" G="0.200000003" R="1"/>
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
@@ -301,7 +279,6 @@
|
|||||||
</c:Fill>
|
</c:Fill>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0" Y="0" Z="0.00999999978"/>
|
<Position X="0" Y="0" Z="0.00999999978"/>
|
||||||
@@ -327,7 +304,6 @@
|
|||||||
<Entity name="KillFeed1">
|
<Entity name="KillFeed1">
|
||||||
<Components>
|
<Components>
|
||||||
<c:Text>
|
<c:Text>
|
||||||
<Content></Content>
|
|
||||||
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
||||||
<Alignment>
|
<Alignment>
|
||||||
<Right/>
|
<Right/>
|
||||||
@@ -340,7 +316,6 @@
|
|||||||
<Entity name="KillFeed2">
|
<Entity name="KillFeed2">
|
||||||
<Components>
|
<Components>
|
||||||
<c:Text>
|
<c:Text>
|
||||||
<Content></Content>
|
|
||||||
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
||||||
<Alignment>
|
<Alignment>
|
||||||
<Right/>
|
<Right/>
|
||||||
@@ -355,7 +330,6 @@
|
|||||||
<Entity name="KillFeed3">
|
<Entity name="KillFeed3">
|
||||||
<Components>
|
<Components>
|
||||||
<c:Text>
|
<c:Text>
|
||||||
<Content></Content>
|
|
||||||
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
||||||
<Alignment>
|
<Alignment>
|
||||||
<Right/>
|
<Right/>
|
||||||
@@ -375,10 +349,8 @@
|
|||||||
<Components>
|
<Components>
|
||||||
<c:Animation>
|
<c:Animation>
|
||||||
<AnimationName1>Idle</AnimationName1>
|
<AnimationName1>Idle</AnimationName1>
|
||||||
<Time1>1.9408570429715581</Time1>
|
<Time1>1.8314163732853146</Time1>
|
||||||
<Speed1>1</Speed1>
|
<Speed1>1</Speed1>
|
||||||
<AnimationName2></AnimationName2>
|
|
||||||
<AnimationName3></AnimationName3>
|
|
||||||
</c:Animation>
|
</c:Animation>
|
||||||
<c:Model>
|
<c:Model>
|
||||||
<Resource>Models/Characters/Assault/FirstPerson.mesh</Resource>
|
<Resource>Models/Characters/Assault/FirstPerson.mesh</Resource>
|
||||||
@@ -387,29 +359,99 @@
|
|||||||
<c:Transform/>
|
<c:Transform/>
|
||||||
</Components>
|
</Components>
|
||||||
<Children>
|
<Children>
|
||||||
<Entity name="PrimaryAttachment">
|
<Entity name="WeaponModel">
|
||||||
<Components>
|
<Components>
|
||||||
<c:WeaponAttachment>
|
<c:BoneAttachment>
|
||||||
<Weapon>DefenderWeapon</Weapon>
|
<BoneName>R_Arm_Weapon_Joint</BoneName>
|
||||||
</c:WeaponAttachment>
|
</c:BoneAttachment>
|
||||||
<c:Spawner>
|
<c:Model>
|
||||||
<EntityFile>Schema/Entities/DefenderWeaponView.xml</EntityFile>
|
<Resource>Models/Weapons/Blue/AssaultWeaponBlue.mesh</Resource>
|
||||||
</c:Spawner>
|
</c:Model>
|
||||||
<c:Transform/>
|
<c:Transform>
|
||||||
|
<Position X="0.120430619" Y="-0.229687244" Z="-0.181454629"/>
|
||||||
|
<Orientation X="0.0104048112" Y="-0.0026817855" Z="0.0428442657"/>
|
||||||
|
</c:Transform>
|
||||||
</Components>
|
</Components>
|
||||||
<Children/>
|
<Children>
|
||||||
</Entity>
|
<Entity name="WeaponMuzzle">
|
||||||
<Entity name="SecondaryAttachment">
|
<Components>
|
||||||
<Components>
|
<c:Spawner>
|
||||||
<c:WeaponAttachment>
|
<EntityFile>Schema/Entities/RayBlue.xml</EntityFile>
|
||||||
<Weapon>AssaultWeapon</Weapon>
|
</c:Spawner>
|
||||||
</c:WeaponAttachment>
|
<c:Transform>
|
||||||
<c:Spawner>
|
<Position X="0.00325386273" Y="0.0970000029" Z="-0.843000054"/>
|
||||||
<EntityFile>Schema/Entities/AssaultWeaponView.xml</EntityFile>
|
</c:Transform>
|
||||||
</c:Spawner>
|
</Components>
|
||||||
<c:Transform/>
|
<Children/>
|
||||||
</Components>
|
</Entity>
|
||||||
<Children/>
|
<Entity name="FirstPersonReloadSpawner">
|
||||||
|
<Components>
|
||||||
|
<c:Spawner>
|
||||||
|
<EntityFile>Schema/Entities/ReloadEffectView.xml</EntityFile>
|
||||||
|
</c:Spawner>
|
||||||
|
<c:Transform/>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
<Entity name="AmmunitionHUD">
|
||||||
|
<Components>
|
||||||
|
<c:AmmunitionHUD/>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="-0.0430000015" Y="0.131501317" Z="-0.0670000017"/>
|
||||||
|
<Scale X="0.400000006" Y="0.400000006" Z="0.400000006"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children>
|
||||||
|
<Entity name="AmmunitionHUDBackground">
|
||||||
|
<Components>
|
||||||
|
<c:Sprite>
|
||||||
|
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
||||||
|
<Color A="0.588235319" B="0" G="0" R="0"/>
|
||||||
|
</c:Sprite>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="0" Y="0" Z="-0.00200000009"/>
|
||||||
|
<Scale X="0.119999997" Y="0.119999997" Z="0.119999997"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
<Entity name="AmmunitionText">
|
||||||
|
<Components>
|
||||||
|
<c:Transform/>
|
||||||
|
</Components>
|
||||||
|
<Children>
|
||||||
|
<Entity name="MagazineAmmo">
|
||||||
|
<Components>
|
||||||
|
<c:Text>
|
||||||
|
<Content>32</Content>
|
||||||
|
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
||||||
|
<Color A="1" B="3.92156863" G="1.17647064" R="0"/>
|
||||||
|
</c:Text>
|
||||||
|
<c:Transform>
|
||||||
|
<Scale X="0.0599999987" Y="0.0599999987" Z="0.0599999987"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
<Entity name="Ammo">
|
||||||
|
<Components>
|
||||||
|
<c:Text>
|
||||||
|
<Content>360</Content>
|
||||||
|
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
||||||
|
<Color A="1" B="3.92156863" G="1.17647064" R="0"/>
|
||||||
|
</c:Text>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="5.2833886e-05" Y="-0.0407950208" Z="0"/>
|
||||||
|
<Scale X="0.0399999991" Y="0.0399999991" Z="0.0399999991"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
</Children>
|
||||||
|
</Entity>
|
||||||
|
</Children>
|
||||||
|
</Entity>
|
||||||
|
</Children>
|
||||||
</Entity>
|
</Entity>
|
||||||
</Children>
|
</Children>
|
||||||
</Entity>
|
</Entity>
|
||||||
@@ -417,10 +459,7 @@
|
|||||||
</Entity>
|
</Entity>
|
||||||
<Entity name="ThirdPersonCamera">
|
<Entity name="ThirdPersonCamera">
|
||||||
<Components>
|
<Components>
|
||||||
<c:Camera>
|
<c:Camera/>
|
||||||
<NearClip>0.10000000149011612</NearClip>
|
|
||||||
<FarClip>300</FarClip>
|
|
||||||
</c:Camera>
|
|
||||||
<c:Model>
|
<c:Model>
|
||||||
<Resource>Models/Widgets/Camera.mesh</Resource>
|
<Resource>Models/Widgets/Camera.mesh</Resource>
|
||||||
<Visible>false</Visible>
|
<Visible>false</Visible>
|
||||||
@@ -436,16 +475,13 @@
|
|||||||
<Components>
|
<Components>
|
||||||
<c:Animation>
|
<c:Animation>
|
||||||
<AnimationName1>Idle</AnimationName1>
|
<AnimationName1>Idle</AnimationName1>
|
||||||
<Time1>1.5631122524686134</Time1>
|
<Time1>0.16333512901638159</Time1>
|
||||||
<Speed1>1</Speed1>
|
<Speed1>1</Speed1>
|
||||||
<AnimationName2></AnimationName2>
|
|
||||||
<AnimationName3></AnimationName3>
|
|
||||||
</c:Animation>
|
</c:Animation>
|
||||||
<c:AnimationOffset>
|
<c:AnimationOffset>
|
||||||
<AnimationName>AimRifle</AnimationName>
|
<AnimationName>AimRifle</AnimationName>
|
||||||
<Time>0.5</Time>
|
<Time>0.5</Time>
|
||||||
</c:AnimationOffset>
|
</c:AnimationOffset>
|
||||||
<c:Shielded/>
|
|
||||||
<c:HiddenForLocalPlayer/>
|
<c:HiddenForLocalPlayer/>
|
||||||
<c:Model>
|
<c:Model>
|
||||||
<Resource>Models/Characters/Assault/AssaultAnimations.mesh</Resource>
|
<Resource>Models/Characters/Assault/AssaultAnimations.mesh</Resource>
|
||||||
@@ -454,35 +490,41 @@
|
|||||||
<c:Transform/>
|
<c:Transform/>
|
||||||
</Components>
|
</Components>
|
||||||
<Children>
|
<Children>
|
||||||
<Entity name="PrimaryAttachment">
|
<Entity name="ThirdPersonWeaponModel">
|
||||||
<Components>
|
<Components>
|
||||||
<c:WeaponAttachment>
|
<c:BoneAttachment>
|
||||||
<Weapon>DefenderWeapon</Weapon>
|
<BoneName>R_Arm_Weapon_Joint</BoneName>
|
||||||
<Person>
|
</c:BoneAttachment>
|
||||||
<ThirdPerson/>
|
<c:Model>
|
||||||
</Person>
|
<Resource>Models/Weapons/Blue/AssaultWeaponBlue.mesh</Resource>
|
||||||
</c:WeaponAttachment>
|
</c:Model>
|
||||||
<c:Spawner>
|
<c:Transform>
|
||||||
<EntityFile>Schema/Entities/DefenderWeaponWorld.xml</EntityFile>
|
<Position X="0.158296332" Y="1.03131664" Z="-0.21615544"/>
|
||||||
</c:Spawner>
|
<Orientation X="-0.0626514703" Y="-0.0352048129" Z="0.12013837"/>
|
||||||
<c:Transform/>
|
</c:Transform>
|
||||||
</Components>
|
</Components>
|
||||||
<Children/>
|
<Children>
|
||||||
</Entity>
|
<Entity name="ThirdPersonWeaponMuzzle">
|
||||||
<Entity name="SecondaryAttachment">
|
<Components>
|
||||||
<Components>
|
<c:Spawner>
|
||||||
<c:WeaponAttachment>
|
<EntityFile>Schema/Entities/RayBlue.xml</EntityFile>
|
||||||
<Weapon>AssaultWeapon</Weapon>
|
</c:Spawner>
|
||||||
<Person>
|
<c:Transform>
|
||||||
<ThirdPerson/>
|
<Position X="0.00644115033" Y="0.096679531" Z="-0.436609417"/>
|
||||||
</Person>
|
</c:Transform>
|
||||||
</c:WeaponAttachment>
|
</Components>
|
||||||
<c:Spawner>
|
<Children/>
|
||||||
<EntityFile>Schema/Entities/AssaultWeaponWorld.xml</EntityFile>
|
</Entity>
|
||||||
</c:Spawner>
|
<Entity name="ThirdPersonReloadSpawner">
|
||||||
<c:Transform/>
|
<Components>
|
||||||
</Components>
|
<c:Spawner>
|
||||||
<Children/>
|
<EntityFile>Schema/Entities/ReloadEffectWorld.xml</EntityFile>
|
||||||
|
</c:Spawner>
|
||||||
|
<c:Transform/>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
</Children>
|
||||||
</Entity>
|
</Entity>
|
||||||
</Children>
|
</Children>
|
||||||
</Entity>
|
</Entity>
|
||||||
@@ -528,37 +570,6 @@
|
|||||||
</Components>
|
</Components>
|
||||||
<Children/>
|
<Children/>
|
||||||
</Entity>
|
</Entity>
|
||||||
<Entity name="Indicator">
|
|
||||||
<Components>
|
|
||||||
<c:Sprite>
|
|
||||||
<DiffuseTexture>Textures/Icons/Arrow.png</DiffuseTexture>
|
|
||||||
<DepthSort>false</DepthSort>
|
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="1" B="1" G="0.309803933" R="0"/>
|
|
||||||
</c:Sprite>
|
|
||||||
<c:HiddenForLocalPlayer/>
|
|
||||||
<c:SpriteIndicator>
|
|
||||||
<MinScale>50</MinScale>
|
|
||||||
<VisibleForSingleTeamOnly>true</VisibleForSingleTeamOnly>
|
|
||||||
</c:SpriteIndicator>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0" Y="1.84019077" Z="0"/>
|
|
||||||
<Scale X="0.300000012" Y="0.300000012" Z="0.300000012"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="ShieldAttachment">
|
|
||||||
<Components>
|
|
||||||
<c:Spawner>
|
|
||||||
<EntityFile>Schema/Entities/DefenderShield.xml</EntityFile>
|
|
||||||
</c:Spawner>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0" Y="0.859000027" Z="-0.976999998"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
</Children>
|
</Children>
|
||||||
|
|
||||||
</Entity>
|
</Entity>
|
||||||
|
|||||||
@@ -7,40 +7,29 @@
|
|||||||
<Size X="1" Y="1.60000002" Z="1"/>
|
<Size X="1" Y="1.60000002" Z="1"/>
|
||||||
</c:AABB>
|
</c:AABB>
|
||||||
<c:AssaultWeapon>
|
<c:AssaultWeapon>
|
||||||
<Slot>
|
<RPM>600</RPM>
|
||||||
<Secondary/>
|
|
||||||
</Slot>
|
|
||||||
</c:AssaultWeapon>
|
</c:AssaultWeapon>
|
||||||
<c:Collidable/>
|
<c:Collidable/>
|
||||||
<c:DefenderWeapon>
|
<c:DashAbility/>
|
||||||
<TimeSinceLastFire>22.22055262342397</TimeSinceLastFire>
|
|
||||||
</c:DefenderWeapon>
|
|
||||||
<c:DoubleJump/>
|
|
||||||
<c:Health/>
|
<c:Health/>
|
||||||
<c:Physics>
|
<c:Physics>
|
||||||
<Velocity X="2.30999646e-23" Y="0" Z="1.05272533e-23"/>
|
<Velocity X="2.30999646e-23" Y="0" Z="1.05272533e-23"/>
|
||||||
</c:Physics>
|
</c:Physics>
|
||||||
<c:Player>
|
<c:Player>
|
||||||
<MovementSpeed>5</MovementSpeed>
|
<MovementSpeed>5</MovementSpeed>
|
||||||
<CurrentWeapon></CurrentWeapon>
|
|
||||||
</c:Player>
|
</c:Player>
|
||||||
<c:Team>
|
<c:Team>
|
||||||
<Team>
|
<Team>
|
||||||
<Red/>
|
<Red/>
|
||||||
</Team>
|
</Team>
|
||||||
</c:Team>
|
</c:Team>
|
||||||
<c:Transform>
|
<c:Transform/>
|
||||||
<Position X="0" Y="0.0288832653" Z="3.63052702"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
</Components>
|
||||||
|
|
||||||
<Children>
|
<Children>
|
||||||
<Entity name="Camera">
|
<Entity name="Camera">
|
||||||
<Components>
|
<Components>
|
||||||
<c:Camera>
|
<c:Camera/>
|
||||||
<NearClip>0.10000000149011612</NearClip>
|
|
||||||
<FarClip>300</FarClip>
|
|
||||||
</c:Camera>
|
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0" Y="1.27700007" Z="0"/>
|
<Position X="0" Y="1.27700007" Z="0"/>
|
||||||
</c:Transform>
|
</c:Transform>
|
||||||
@@ -71,7 +60,6 @@
|
|||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Weapons/Crosshair/SmallThickHoleDot.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Weapons/Crosshair/SmallThickHoleDot.png</DiffuseTexture>
|
||||||
<DepthSort>false</DepthSort>
|
<DepthSort>false</DepthSort>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0" Y="0" Z="0.200000003"/>
|
<Position X="0" Y="0" Z="0.200000003"/>
|
||||||
@@ -122,7 +110,6 @@
|
|||||||
</c:Fill>
|
</c:Fill>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/HealthHUD3.png</DiffuseTexture>
|
<DiffuseTexture>Textures/HealthHUD3.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="0.588235319" B="0" G="0" R="0"/>
|
<Color A="0.588235319" B="0" G="0" R="0"/>
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:HealthHUD/>
|
<c:HealthHUD/>
|
||||||
@@ -148,7 +135,6 @@
|
|||||||
<Components>
|
<Components>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="0.300000012" B="1" G="1" R="1"/>
|
<Color A="0.300000012" B="1" G="1" R="1"/>
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
@@ -166,7 +152,6 @@
|
|||||||
</c:Fill>
|
</c:Fill>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0" Y="0" Z="0.00999999978"/>
|
<Position X="0" Y="0" Z="0.00999999978"/>
|
||||||
@@ -182,7 +167,6 @@
|
|||||||
<Components>
|
<Components>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="0.300000012" B="1" G="1" R="1"/>
|
<Color A="0.300000012" B="1" G="1" R="1"/>
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
@@ -201,7 +185,6 @@
|
|||||||
</c:Fill>
|
</c:Fill>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0" Y="0" Z="0.00999999978"/>
|
<Position X="0" Y="0" Z="0.00999999978"/>
|
||||||
@@ -217,7 +200,6 @@
|
|||||||
<Components>
|
<Components>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="0.699999988" B="1" G="0.200000003" R="0"/>
|
<Color A="0.699999988" B="1" G="0.200000003" R="0"/>
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
@@ -235,7 +217,6 @@
|
|||||||
</c:Fill>
|
</c:Fill>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0" Y="0" Z="0.00999999978"/>
|
<Position X="0" Y="0" Z="0.00999999978"/>
|
||||||
@@ -251,7 +232,6 @@
|
|||||||
<Components>
|
<Components>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="0.300000012" B="1" G="1" R="1"/>
|
<Color A="0.300000012" B="1" G="1" R="1"/>
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
@@ -269,7 +249,6 @@
|
|||||||
</c:Fill>
|
</c:Fill>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0" Y="0" Z="0.00999999978"/>
|
<Position X="0" Y="0" Z="0.00999999978"/>
|
||||||
@@ -285,7 +264,6 @@
|
|||||||
<Components>
|
<Components>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="0.699999988" B="0" G="0.200000003" R="1"/>
|
<Color A="0.699999988" B="0" G="0.200000003" R="1"/>
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
@@ -301,7 +279,6 @@
|
|||||||
</c:Fill>
|
</c:Fill>
|
||||||
<c:Sprite>
|
<c:Sprite>
|
||||||
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
<DiffuseTexture>Textures/Core/UnitHexagon_Rotated.png</DiffuseTexture>
|
||||||
<GlowMap></GlowMap>
|
|
||||||
</c:Sprite>
|
</c:Sprite>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0" Y="0" Z="0.00999999978"/>
|
<Position X="0" Y="0" Z="0.00999999978"/>
|
||||||
@@ -327,7 +304,6 @@
|
|||||||
<Entity name="KillFeed1">
|
<Entity name="KillFeed1">
|
||||||
<Components>
|
<Components>
|
||||||
<c:Text>
|
<c:Text>
|
||||||
<Content></Content>
|
|
||||||
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
||||||
<Alignment>
|
<Alignment>
|
||||||
<Right/>
|
<Right/>
|
||||||
@@ -340,7 +316,6 @@
|
|||||||
<Entity name="KillFeed2">
|
<Entity name="KillFeed2">
|
||||||
<Components>
|
<Components>
|
||||||
<c:Text>
|
<c:Text>
|
||||||
<Content></Content>
|
|
||||||
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
||||||
<Alignment>
|
<Alignment>
|
||||||
<Right/>
|
<Right/>
|
||||||
@@ -355,7 +330,6 @@
|
|||||||
<Entity name="KillFeed3">
|
<Entity name="KillFeed3">
|
||||||
<Components>
|
<Components>
|
||||||
<c:Text>
|
<c:Text>
|
||||||
<Content></Content>
|
|
||||||
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
||||||
<Alignment>
|
<Alignment>
|
||||||
<Right/>
|
<Right/>
|
||||||
@@ -375,10 +349,8 @@
|
|||||||
<Components>
|
<Components>
|
||||||
<c:Animation>
|
<c:Animation>
|
||||||
<AnimationName1>Idle</AnimationName1>
|
<AnimationName1>Idle</AnimationName1>
|
||||||
<Time1>1.1978087298230946</Time1>
|
<Time1>0.018170670865885086</Time1>
|
||||||
<Speed1>1</Speed1>
|
<Speed1>1</Speed1>
|
||||||
<AnimationName2></AnimationName2>
|
|
||||||
<AnimationName3></AnimationName3>
|
|
||||||
</c:Animation>
|
</c:Animation>
|
||||||
<c:Model>
|
<c:Model>
|
||||||
<Resource>Models/Characters/Assault/FirstPerson.mesh</Resource>
|
<Resource>Models/Characters/Assault/FirstPerson.mesh</Resource>
|
||||||
@@ -387,29 +359,99 @@
|
|||||||
<c:Transform/>
|
<c:Transform/>
|
||||||
</Components>
|
</Components>
|
||||||
<Children>
|
<Children>
|
||||||
<Entity name="PrimaryAttachment">
|
<Entity name="WeaponModel">
|
||||||
<Components>
|
<Components>
|
||||||
<c:WeaponAttachment>
|
<c:BoneAttachment>
|
||||||
<Weapon>DefenderWeapon</Weapon>
|
<BoneName>R_Arm_Weapon_Joint</BoneName>
|
||||||
</c:WeaponAttachment>
|
</c:BoneAttachment>
|
||||||
<c:Spawner>
|
<c:Model>
|
||||||
<EntityFile>Schema/Entities/DefenderWeaponViewRed.xml</EntityFile>
|
<Resource>Models/Weapons/Red/AssaultWeaponRed.mesh</Resource>
|
||||||
</c:Spawner>
|
</c:Model>
|
||||||
<c:Transform/>
|
<c:Transform>
|
||||||
|
<Position X="0.120430693" Y="-0.2284486" Z="-0.181454509"/>
|
||||||
|
<Orientation X="0.0104046017" Y="-0.00268172775" Z="0.0428442247"/>
|
||||||
|
</c:Transform>
|
||||||
</Components>
|
</Components>
|
||||||
<Children/>
|
<Children>
|
||||||
</Entity>
|
<Entity name="WeaponMuzzle">
|
||||||
<Entity name="SecondaryAttachment">
|
<Components>
|
||||||
<Components>
|
<c:Spawner>
|
||||||
<c:WeaponAttachment>
|
<EntityFile>Schema/Entities/RayRed.xml</EntityFile>
|
||||||
<Weapon>AssaultWeapon</Weapon>
|
</c:Spawner>
|
||||||
</c:WeaponAttachment>
|
<c:Transform>
|
||||||
<c:Spawner>
|
<Position X="0.00325386273" Y="0.0970000029" Z="-0.843000054"/>
|
||||||
<EntityFile>Schema/Entities/AssaultWeaponView.xml</EntityFile>
|
</c:Transform>
|
||||||
</c:Spawner>
|
</Components>
|
||||||
<c:Transform/>
|
<Children/>
|
||||||
</Components>
|
</Entity>
|
||||||
<Children/>
|
<Entity name="FirstPersonReloadSpawner">
|
||||||
|
<Components>
|
||||||
|
<c:Spawner>
|
||||||
|
<EntityFile>Schema/Entities/ReloadEffectViewRed.xml</EntityFile>
|
||||||
|
</c:Spawner>
|
||||||
|
<c:Transform/>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
<Entity name="AmmunitionHUD">
|
||||||
|
<Components>
|
||||||
|
<c:AmmunitionHUD/>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="-0.0430000015" Y="0.131501317" Z="-0.0670000017"/>
|
||||||
|
<Scale X="0.400000006" Y="0.400000006" Z="0.400000006"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children>
|
||||||
|
<Entity name="AmmunitionHUDBackground">
|
||||||
|
<Components>
|
||||||
|
<c:Sprite>
|
||||||
|
<DiffuseTexture>Textures/Core/UnitHexagon.png</DiffuseTexture>
|
||||||
|
<Color A="0.588235319" B="0" G="0" R="0"/>
|
||||||
|
</c:Sprite>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="0" Y="0" Z="-0.00200000009"/>
|
||||||
|
<Scale X="0.119999997" Y="0.119999997" Z="0.119999997"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
<Entity name="AmmunitionText">
|
||||||
|
<Components>
|
||||||
|
<c:Transform/>
|
||||||
|
</Components>
|
||||||
|
<Children>
|
||||||
|
<Entity name="MagazineAmmo">
|
||||||
|
<Components>
|
||||||
|
<c:Text>
|
||||||
|
<Content>32</Content>
|
||||||
|
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
||||||
|
<Color A="1" B="3.92156863" G="1.17647064" R="0"/>
|
||||||
|
</c:Text>
|
||||||
|
<c:Transform>
|
||||||
|
<Scale X="0.0599999987" Y="0.0599999987" Z="0.0599999987"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
<Entity name="Ammo">
|
||||||
|
<Components>
|
||||||
|
<c:Text>
|
||||||
|
<Content>360</Content>
|
||||||
|
<Resource>Fonts/DroidSans.ttf,64</Resource>
|
||||||
|
<Color A="1" B="3.92156863" G="1.17647064" R="0"/>
|
||||||
|
</c:Text>
|
||||||
|
<c:Transform>
|
||||||
|
<Position X="5.2833886e-05" Y="-0.0407950208" Z="0"/>
|
||||||
|
<Scale X="0.0399999991" Y="0.0399999991" Z="0.0399999991"/>
|
||||||
|
</c:Transform>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
</Children>
|
||||||
|
</Entity>
|
||||||
|
</Children>
|
||||||
|
</Entity>
|
||||||
|
</Children>
|
||||||
</Entity>
|
</Entity>
|
||||||
</Children>
|
</Children>
|
||||||
</Entity>
|
</Entity>
|
||||||
@@ -417,10 +459,7 @@
|
|||||||
</Entity>
|
</Entity>
|
||||||
<Entity name="ThirdPersonCamera">
|
<Entity name="ThirdPersonCamera">
|
||||||
<Components>
|
<Components>
|
||||||
<c:Camera>
|
<c:Camera/>
|
||||||
<NearClip>0.10000000149011612</NearClip>
|
|
||||||
<FarClip>300</FarClip>
|
|
||||||
</c:Camera>
|
|
||||||
<c:Model>
|
<c:Model>
|
||||||
<Resource>Models/Widgets/Camera.mesh</Resource>
|
<Resource>Models/Widgets/Camera.mesh</Resource>
|
||||||
<Visible>false</Visible>
|
<Visible>false</Visible>
|
||||||
@@ -436,16 +475,13 @@
|
|||||||
<Components>
|
<Components>
|
||||||
<c:Animation>
|
<c:Animation>
|
||||||
<AnimationName1>Idle</AnimationName1>
|
<AnimationName1>Idle</AnimationName1>
|
||||||
<Time1>0.69274608502888668</Time1>
|
<Time1>0.11675631578762591</Time1>
|
||||||
<Speed1>1</Speed1>
|
<Speed1>1</Speed1>
|
||||||
<AnimationName2></AnimationName2>
|
|
||||||
<AnimationName3></AnimationName3>
|
|
||||||
</c:Animation>
|
</c:Animation>
|
||||||
<c:AnimationOffset>
|
<c:AnimationOffset>
|
||||||
<AnimationName>AimRifle</AnimationName>
|
<AnimationName>AimRifle</AnimationName>
|
||||||
<Time>0.5</Time>
|
<Time>0.5</Time>
|
||||||
</c:AnimationOffset>
|
</c:AnimationOffset>
|
||||||
<c:Shielded/>
|
|
||||||
<c:HiddenForLocalPlayer/>
|
<c:HiddenForLocalPlayer/>
|
||||||
<c:Model>
|
<c:Model>
|
||||||
<Resource>Models/Characters/Assault/AssaultAnimations.mesh</Resource>
|
<Resource>Models/Characters/Assault/AssaultAnimations.mesh</Resource>
|
||||||
@@ -454,35 +490,41 @@
|
|||||||
<c:Transform/>
|
<c:Transform/>
|
||||||
</Components>
|
</Components>
|
||||||
<Children>
|
<Children>
|
||||||
<Entity name="PrimaryAttachment">
|
<Entity name="ThirdPersonWeaponModel">
|
||||||
<Components>
|
<Components>
|
||||||
<c:WeaponAttachment>
|
<c:BoneAttachment>
|
||||||
<Weapon>DefenderWeapon</Weapon>
|
<BoneName>R_Arm_Weapon_Joint</BoneName>
|
||||||
<Person>
|
</c:BoneAttachment>
|
||||||
<ThirdPerson/>
|
<c:Model>
|
||||||
</Person>
|
<Resource>Models/Weapons/Red/AssaultWeaponRed.mesh</Resource>
|
||||||
</c:WeaponAttachment>
|
</c:Model>
|
||||||
<c:Spawner>
|
<c:Transform>
|
||||||
<EntityFile>Schema/Entities/DefenderWeaponWorldRed.xml</EntityFile>
|
<Position X="0.157842755" Y="1.03184748" Z="-0.216178894"/>
|
||||||
</c:Spawner>
|
<Orientation X="-0.0626459867" Y="-0.0335309952" Z="0.120309927"/>
|
||||||
<c:Transform/>
|
</c:Transform>
|
||||||
</Components>
|
</Components>
|
||||||
<Children/>
|
<Children>
|
||||||
</Entity>
|
<Entity name="ThirdPersonWeaponMuzzle">
|
||||||
<Entity name="SecondaryAttachment">
|
<Components>
|
||||||
<Components>
|
<c:Spawner>
|
||||||
<c:WeaponAttachment>
|
<EntityFile>Schema/Entities/RayRed.xml</EntityFile>
|
||||||
<Weapon>AssaultWeapon</Weapon>
|
</c:Spawner>
|
||||||
<Person>
|
<c:Transform>
|
||||||
<ThirdPerson/>
|
<Position X="0.00644115033" Y="0.096679531" Z="-0.436609417"/>
|
||||||
</Person>
|
</c:Transform>
|
||||||
</c:WeaponAttachment>
|
</Components>
|
||||||
<c:Spawner>
|
<Children/>
|
||||||
<EntityFile>Schema/Entities/AssaultWeaponWorld.xml</EntityFile>
|
</Entity>
|
||||||
</c:Spawner>
|
<Entity name="ThirdPersonReloadSpawner">
|
||||||
<c:Transform/>
|
<Components>
|
||||||
</Components>
|
<c:Spawner>
|
||||||
<Children/>
|
<EntityFile>Schema/Entities/ReloadEffectWorldRed.xml</EntityFile>
|
||||||
|
</c:Spawner>
|
||||||
|
<c:Transform/>
|
||||||
|
</Components>
|
||||||
|
<Children/>
|
||||||
|
</Entity>
|
||||||
|
</Children>
|
||||||
</Entity>
|
</Entity>
|
||||||
</Children>
|
</Children>
|
||||||
</Entity>
|
</Entity>
|
||||||
@@ -521,44 +563,13 @@
|
|||||||
<Color A="1" B="0" G="1" R="0"/>
|
<Color A="1" B="0" G="1" R="0"/>
|
||||||
</c:Text>
|
</c:Text>
|
||||||
<c:Transform>
|
<c:Transform>
|
||||||
<Position X="0.100000001" Y="1.50176644" Z="-0.248000011"/>
|
<Position X="0.100000001" Y="1.50199997" Z="-0.248000011"/>
|
||||||
<Scale X="0.100000001" Y="0.113000005" Z="0.5"/>
|
<Scale X="0.100000001" Y="0.113000005" Z="0.5"/>
|
||||||
<Orientation X="0" Y="3.14199996" Z="0"/>
|
<Orientation X="0" Y="3.14199996" Z="0"/>
|
||||||
</c:Transform>
|
</c:Transform>
|
||||||
</Components>
|
</Components>
|
||||||
<Children/>
|
<Children/>
|
||||||
</Entity>
|
</Entity>
|
||||||
<Entity name="Indicator">
|
|
||||||
<Components>
|
|
||||||
<c:Sprite>
|
|
||||||
<DiffuseTexture>Textures/Icons/Arrow.png</DiffuseTexture>
|
|
||||||
<DepthSort>false</DepthSort>
|
|
||||||
<GlowMap></GlowMap>
|
|
||||||
<Color A="1" B="1" G="0.309803933" R="0"/>
|
|
||||||
</c:Sprite>
|
|
||||||
<c:HiddenForLocalPlayer/>
|
|
||||||
<c:SpriteIndicator>
|
|
||||||
<MinScale>50</MinScale>
|
|
||||||
<VisibleForSingleTeamOnly>true</VisibleForSingleTeamOnly>
|
|
||||||
</c:SpriteIndicator>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0" Y="1.84019077" Z="0"/>
|
|
||||||
<Scale X="0.300000012" Y="0.300000012" Z="0.300000012"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
<Entity name="ShieldAttachment">
|
|
||||||
<Components>
|
|
||||||
<c:Spawner>
|
|
||||||
<EntityFile>Schema/Entities/DefenderShield.xml</EntityFile>
|
|
||||||
</c:Spawner>
|
|
||||||
<c:Transform>
|
|
||||||
<Position X="0" Y="0.859000027" Z="-0.976999998"/>
|
|
||||||
</c:Transform>
|
|
||||||
</Components>
|
|
||||||
<Children/>
|
|
||||||
</Entity>
|
|
||||||
</Children>
|
</Children>
|
||||||
|
|
||||||
</Entity>
|
</Entity>
|
||||||
|
|||||||
@@ -50,8 +50,7 @@
|
|||||||
<xs:element ref="c:Menu" minOccurs="0"/>
|
<xs:element ref="c:Menu" minOccurs="0"/>
|
||||||
<xs:element ref="c:Page" minOccurs="0"/>
|
<xs:element ref="c:Page" minOccurs="0"/>
|
||||||
<xs:element ref="c:Button" minOccurs="0"/>
|
<xs:element ref="c:Button" minOccurs="0"/>
|
||||||
<xs:element ref="c:WeaponAttachment" minOccurs="0"/>
|
<xs:element ref="c:Gamemode" minOccurs="0"/>
|
||||||
<xs:element ref="c:DefenderWeapon" minOccurs="0"/>
|
|
||||||
</xs:all>
|
</xs:all>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
|
|
||||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" xmlns:t="types">
|
|
||||||
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
|
|
||||||
|
|
||||||
<xs:complexType name="WeaponSlotEnum" mixed="true">
|
|
||||||
<xs:complexContent>
|
|
||||||
<xs:extension base="t:enum">
|
|
||||||
<xs:choice>
|
|
||||||
<xs:element name="Primary" type="t:int" fixed="1" minOccurs="0"/>
|
|
||||||
<xs:element name="Secondary" type="t:int" fixed="2" minOccurs="0"/>
|
|
||||||
</xs:choice>
|
|
||||||
</xs:extension>
|
|
||||||
</xs:complexContent>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:schema>
|
|
||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
layout (binding = 0) uniform sampler2D SceneTexture;
|
layout (binding = 0) uniform sampler2D SceneTexture;
|
||||||
layout (binding = 1) uniform sampler2D BloomTexture;
|
layout (binding = 1) uniform sampler2D BloomTexture;
|
||||||
|
layout (binding = 2) uniform sampler2D SceneTextureLowRes;
|
||||||
|
layout (binding = 3) uniform sampler2D BloomTextureLowRes;
|
||||||
uniform float Exposure;
|
uniform float Exposure;
|
||||||
uniform float Gamma;
|
uniform float Gamma;
|
||||||
|
|
||||||
@@ -15,12 +17,21 @@ void main()
|
|||||||
{
|
{
|
||||||
vec4 hdrColor = texture(SceneTexture, Input.TextureCoordinate);
|
vec4 hdrColor = texture(SceneTexture, Input.TextureCoordinate);
|
||||||
vec4 bloomColor = texture(BloomTexture, Input.TextureCoordinate);
|
vec4 bloomColor = texture(BloomTexture, Input.TextureCoordinate);
|
||||||
|
vec4 hdrColorLowRes = texture(SceneTextureLowRes, Input.TextureCoordinate);
|
||||||
|
vec4 bloomColorLowRes = texture(BloomTextureLowRes, Input.TextureCoordinate);
|
||||||
|
|
||||||
//hdrColor = hdrColor * SSAO;
|
//hdrColor = hdrColor * SSAO;
|
||||||
hdrColor += bloomColor;
|
hdrColor += bloomColor;
|
||||||
|
hdrColorLowRes;
|
||||||
|
|
||||||
|
float hdrColorsum = hdrColorLowRes.r + hdrColorLowRes.g + hdrColorLowRes.b;
|
||||||
//Toon mapping thingy
|
//Toon mapping thingy
|
||||||
vec3 result = vec3(1.0) - exp(-hdrColor.rgb * Exposure);
|
vec3 result;
|
||||||
|
if(hdrColorsum > 0.0) {
|
||||||
|
result = vec3(1.0) - exp(-hdrColorLowRes.rgb * Exposure);
|
||||||
|
} else {
|
||||||
|
result = vec3(1.0) - exp(-hdrColor.rgb * Exposure);
|
||||||
|
}
|
||||||
|
|
||||||
//gamme correction
|
//gamme correction
|
||||||
result = pow(result, vec3(1.0 / Gamma));
|
result = pow(result, vec3(1.0 / Gamma));
|
||||||
|
|||||||
@@ -12,8 +12,6 @@ uniform vec4 FillColor;
|
|||||||
uniform vec4 AmbientColor;
|
uniform vec4 AmbientColor;
|
||||||
uniform float FillPercentage;
|
uniform float FillPercentage;
|
||||||
uniform float GlowIntensity = 10;
|
uniform float GlowIntensity = 10;
|
||||||
uniform vec3 CameraPosition;
|
|
||||||
uniform int SSAOQuality;
|
|
||||||
|
|
||||||
uniform vec2 DiffuseUVRepeat;
|
uniform vec2 DiffuseUVRepeat;
|
||||||
uniform vec2 NormalUVRepeat;
|
uniform vec2 NormalUVRepeat;
|
||||||
@@ -24,7 +22,6 @@ layout (binding = 1) uniform sampler2D DiffuseTexture;
|
|||||||
layout (binding = 2) uniform sampler2D NormalMapTexture;
|
layout (binding = 2) uniform sampler2D NormalMapTexture;
|
||||||
layout (binding = 3) uniform sampler2D SpecularMapTexture;
|
layout (binding = 3) uniform sampler2D SpecularMapTexture;
|
||||||
layout (binding = 4) uniform sampler2D GlowMapTexture;
|
layout (binding = 4) uniform sampler2D GlowMapTexture;
|
||||||
layout (binding = 5) uniform samplerCube CubeMap;
|
|
||||||
|
|
||||||
#define TILE_SIZE 16
|
#define TILE_SIZE 16
|
||||||
|
|
||||||
@@ -79,7 +76,7 @@ struct LightResult {
|
|||||||
};
|
};
|
||||||
|
|
||||||
float CalcAttenuation(float radius, float dist, float falloff) {
|
float CalcAttenuation(float radius, float dist, float falloff) {
|
||||||
return 1.0 - smoothstep(radius * falloff, radius, dist);
|
return 1.0 - smoothstep(radius * 0.3, radius, dist);
|
||||||
}
|
}
|
||||||
|
|
||||||
vec4 CalcSpecular(vec4 lightColor, vec4 viewVec, vec4 lightVec, vec4 normal) {
|
vec4 CalcSpecular(vec4 lightColor, vec4 viewVec, vec4 lightVec, vec4 normal) {
|
||||||
@@ -126,7 +123,7 @@ vec4 CalcNormalMappedValue(vec3 normal, vec3 tangent, vec3 bitangent, vec2 textu
|
|||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
float ao = texelFetch(AOTexture, ivec2(gl_FragCoord.xy) >> int(SSAOQuality), 0).r;
|
float ao = texelFetch(AOTexture, ivec2(gl_FragCoord.xy), 0).r;
|
||||||
ao = (clamp(1.0 - (1.0 - ao), 0.0, 1.0) + MIN_AMBIENT_LIGHT) / (1.0 + MIN_AMBIENT_LIGHT);
|
ao = (clamp(1.0 - (1.0 - ao), 0.0, 1.0) + MIN_AMBIENT_LIGHT) / (1.0 + MIN_AMBIENT_LIGHT);
|
||||||
vec4 diffuseTexel = texture2D(DiffuseTexture, Input.TextureCoordinate * DiffuseUVRepeat);
|
vec4 diffuseTexel = texture2D(DiffuseTexture, Input.TextureCoordinate * DiffuseUVRepeat);
|
||||||
vec4 glowTexel = texture2D(GlowMapTexture, Input.TextureCoordinate * GlowUVRepeat);
|
vec4 glowTexel = texture2D(GlowMapTexture, Input.TextureCoordinate * GlowUVRepeat);
|
||||||
@@ -136,10 +133,6 @@ void main()
|
|||||||
normal = normalize(normal);
|
normal = normalize(normal);
|
||||||
//vec4 normal = normalize(V * vec4(Input.Normal, 0.0));
|
//vec4 normal = normalize(V * vec4(Input.Normal, 0.0));
|
||||||
vec4 viewVec = normalize(-position);
|
vec4 viewVec = normalize(-position);
|
||||||
vec3 I = normalize(vec3(M * vec4(Input.Position, 1.0)) - CameraPosition);
|
|
||||||
vec3 R = reflect(-I, Input.Normal);
|
|
||||||
//R = vec3(P * vec4(R, 1.0));
|
|
||||||
vec4 reflectionColor = texture(CubeMap, R);
|
|
||||||
|
|
||||||
vec2 tilePos;
|
vec2 tilePos;
|
||||||
tilePos.x = int(gl_FragCoord.x/TILE_SIZE);
|
tilePos.x = int(gl_FragCoord.x/TILE_SIZE);
|
||||||
@@ -170,9 +163,6 @@ void main()
|
|||||||
|
|
||||||
vec4 color_result = mix((Color * diffuseTexel * DiffuseColor), Input.ExplosionColor, Input.ExplosionPercentageElapsed);
|
vec4 color_result = mix((Color * diffuseTexel * DiffuseColor), Input.ExplosionColor, Input.ExplosionPercentageElapsed);
|
||||||
color_result = color_result * (totalLighting.Diffuse + (totalLighting.Specular * specularTexel));
|
color_result = color_result * (totalLighting.Diffuse + (totalLighting.Specular * specularTexel));
|
||||||
float specularResult = (specularTexel.r + specularTexel.g + specularTexel.b)/3.0;
|
|
||||||
vec4 reflectionTotal = reflectionColor * (1-specularTexel.a) * color_result.a;
|
|
||||||
color_result = color_result * clamp(1/specularTexel.a, 0, 1) + reflectionTotal;
|
|
||||||
//vec4 color_result = (DiffuseColor + Input.ExplosionColor) * (totalLighting.Diffuse + (totalLighting.Specular * specularTexel)) * diffuseTexel * Color;
|
//vec4 color_result = (DiffuseColor + Input.ExplosionColor) * (totalLighting.Diffuse + (totalLighting.Specular * specularTexel)) * diffuseTexel * Color;
|
||||||
|
|
||||||
|
|
||||||
@@ -182,10 +172,9 @@ void main()
|
|||||||
color_result += FillColor;
|
color_result += FillColor;
|
||||||
}
|
}
|
||||||
sceneColor = vec4(color_result.xyz, clamp(color_result.a, 0, 1));
|
sceneColor = vec4(color_result.xyz, clamp(color_result.a, 0, 1));
|
||||||
//sceneColor = vec4(reflectionColor.xyz, 1);
|
color_result += glowTexel*GlowIntensity;
|
||||||
color_result.xyz += glowTexel.xyz*GlowIntensity;
|
|
||||||
|
|
||||||
bloomColor = vec4(max(color_result.xyz - 1.0, 0.0), clamp(color_result.a, 0, 1));
|
bloomColor = vec4(clamp(color_result.xyz - 1.0, 0, 100), 1.0);
|
||||||
|
|
||||||
//Tiled Debug Code
|
//Tiled Debug Code
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -23,12 +23,12 @@ out VertexData{
|
|||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
gl_Position = P*V*M * vec4(Position, 1.0);
|
gl_Position = P*V*M * vec4(Position, 1.0);
|
||||||
mat4 TIM = transpose(inverse(M));
|
|
||||||
Output.Position = Position;
|
Output.Position = Position;
|
||||||
Output.TextureCoordinate = TextureCoords;
|
Output.TextureCoordinate = TextureCoords;
|
||||||
Output.Normal = vec3(TIM * vec4(Normal, 0.0));
|
Output.Normal = vec3(M * vec4(Normal, 0.0));
|
||||||
Output.Tangent = vec3(TIM * vec4(Tangent, 0.0));
|
Output.Tangent = vec3(M * vec4(Tangent, 0.0));
|
||||||
Output.BiTangent = vec3(TIM * vec4(BiTangent, 0.0));
|
Output.BiTangent = vec3(M * vec4(BiTangent, 0.0));
|
||||||
Output.ExplosionColor = vec4(1.0);
|
Output.ExplosionColor = vec4(1.0);
|
||||||
Output.ExplosionPercentageElapsed = 0.0;
|
Output.ExplosionPercentageElapsed = 0.0;
|
||||||
}
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user