Nuclide
Software Development Kit for id Technology
NSOutput.h
1/*
2 * Copyright (c) 2016-2022 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
17/* inspired by https://developer.valvesoftware.com/wiki/Inputs_and_Outputs
18 a lot of the action happens in NSIO.
19*/
20
23{
24private:
25 entity m_eActivator;
26 string m_strTarget;
27 string m_strInput;
28 string m_strData;
29 float m_flDelay;
30 int m_iCount;
31 int m_iOldCount;
32
33public:
34 void NSOutput(void);
35
37 virtual void TriggerOutput(void);
38
39 virtual void ScheduleOutput(entity);
40
42 virtual void Init(void);
44 virtual void Respawn(void);
45};
NSEntity is the lowest of the user-accessible entity class.
Definition: NSEntity.h:54
This entity class represents a child-output, generated by NSIO's modern trigger system.
Definition: NSOutput.h:23
virtual void TriggerOutput(void)
Call to trigger the NSOutput's target.
Definition: NSOutput.qc:18
virtual void Init(void)
Internal use only.
Definition: NSOutput.qc:45
virtual void Respawn(void)
Internal use only.
Definition: NSOutput.qc:53
virtual void ScheduleOutput(entity)
Definition: NSOutput.qc:37
void NSOutput(void)
Definition: NSOutput.qc:62