Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikk155 committed Mar 30, 2024
1 parent c67dd3b commit 6945d73
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ target_sources(server PRIVATE
entities/subs.cpp
entities/teleport_entities.cpp
entities/trains.h
entities/trigger_changevalue.cpp
entities/trigger_changevalue.h
entities/triggers.cpp
entities/world.cpp
entities/world.h
Expand Down
24 changes: 24 additions & 0 deletions src/game/server/entities/trigger_changevalue.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object code is restricted to non-commercial enhancements to products from
* Valve LLC. All other use, distribution, or modification is prohibited
* without written permission from Valve LLC.
*
****/

#include "trigger_changevalue.h"

LINK_ENTITY_TO_CLASS( trigger_changevalue, CTriggerChangeValue );

void CTriggerChangeValue :: Use( CBaseEntity* pActivator, CBaseEntity* pCaller, USE_TYPE useType, float value )
{
FindTarget( pActivator, pCaller );
CKeyValueLogic::Use( pActivator, pCaller, useType, value );
}
26 changes: 26 additions & 0 deletions src/game/server/entities/trigger_changevalue.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object code is restricted to non-commercial enhancements to products from
* Valve LLC. All other use, distribution, or modification is prohibited
* without written permission from Valve LLC.
*
****/

#pragma once

#include "CKeyValueLogic.h"

class CTriggerChangeValue : public CKeyValueLogic
{
public:
void Use( CBaseEntity* pActivator, CBaseEntity* pCaller, USE_TYPE useType, float value ) override;

private:
};

0 comments on commit 6945d73

Please sign in to comment.