Fixed compile errors

This commit is contained in:
smallmodel 2023-08-09 23:27:08 +02:00
parent e4a0406fc2
commit e687d97660
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -76,11 +76,12 @@ Event EV_Classname
); );
Event EV_SpawnFlags Event EV_SpawnFlags
( (
"spawnflags", EV_DEFAULT, "spawnflags",
EV_DEFAULT,
"i", "i",
"flags", "flags",
"spawnflags from the BSP, "spawnflags from the BSP,"
these are set inside the editor", "these are set inside the editor",
EV_NORMAL EV_NORMAL
); );
Event EV_GetNormalHealth Event EV_GetNormalHealth
@ -185,8 +186,7 @@ Event EV_FadeIn
"the default values.", "the default values.",
EV_NORMAL EV_NORMAL
); );
Event EV_Killed Event EV_Killed(
(
"killed", "killed",
EV_DEFAULT, EV_DEFAULT,
"eievvviiii", "eievvviiii",
@ -214,8 +214,7 @@ Event EV_Pain
"used to inflict pain to an entity", "used to inflict pain to an entity",
EV_NORMAL EV_NORMAL
); );
Event EV_Damage Event EV_Damage(
(
"damage", "damage",
EV_DEFAULT, EV_DEFAULT,
"eievvviiii", "eievvviiii",
@ -263,14 +262,13 @@ Event EV_Hurt
"entity's current health, it will be killed or destroyed.", "entity's current health, it will be killed or destroyed.",
EV_NORMAL EV_NORMAL
); );
Event EV_Heal Event EV_Heal(
(
"heal", "heal",
EV_DEFAULT, EV_DEFAULT,
"f", "f",
"health", "health",
"Adds health to an entity, "Adds health to an entity,"
0-1 fraction of max_health" "0-1 fraction of max_health"
); );
Event EV_TakeDamage Event EV_TakeDamage
@ -294,11 +292,12 @@ Event EV_NoDamage
Event EV_Stationary Event EV_Stationary
( (
"stationary", EV_DEFAULT, "stationary",
EV_DEFAULT,
NULL, NULL,
NULL, NULL,
"entity does not move, "entity does not move,"
causes no physics to be run on it.", "causes no physics to be run on it.",
EV_NORMAL EV_NORMAL
); );
Event EV_Toss Event EV_Toss
@ -341,11 +340,12 @@ Event EV_Blocked
); );
Event EV_UseBoundingBox Event EV_UseBoundingBox
( (
"usebbox", EV_DEFAULT, "usebbox",
EV_DEFAULT,
NULL, NULL,
NULL, NULL,
"do not perform perfect collision, "do not perform perfect collision,"
use bounding box instead.", "use bounding box instead.",
EV_NORMAL EV_NORMAL
); );
Event EV_Gravity Event EV_Gravity
@ -401,8 +401,7 @@ Event EV_RemoveAttachedModel
"Removes the model attached to this entity at the specified tag.", "Removes the model attached to this entity at the specified tag.",
EV_NORMAL EV_NORMAL
); );
Event EV_AttachedModelAnim Event EV_AttachedModelAnim(
(
"attachedmodelanim", "attachedmodelanim",
EV_DEFAULT, EV_DEFAULT,
"ssfs", "ssfs",
@ -459,20 +458,22 @@ Event EV_GetBrushModel
); );
Event EV_Hide Event EV_Hide
( (
"hide", EV_DEFAULT, "hide",
EV_DEFAULT,
NULL, NULL,
NULL, NULL,
"hide the entity, "hide the entity,"
opposite of show.", "opposite of show.",
EV_NORMAL EV_NORMAL
); );
Event EV_Show Event EV_Show
( (
"show", EV_DEFAULT, "show",
EV_DEFAULT,
NULL, NULL,
NULL, NULL,
"show the entity, "show the entity,"
opposite of hide.", "opposite of hide.",
EV_NORMAL EV_NORMAL
); );
Event EV_BecomeSolid Event EV_BecomeSolid
@ -734,8 +735,7 @@ Event EV_StopLoopSound
EV_NORMAL EV_NORMAL
); );
Event EV_SurfaceModelEvent Event EV_SurfaceModelEvent(
(
"surface", "surface",
EV_DEFAULT, EV_DEFAULT,
"sSSSSSS", "sSSSSSS",
@ -836,8 +836,7 @@ Event EV_LightRadius
); );
// Entity flag specific // Entity flag specific
Event EV_EntityFlags Event EV_EntityFlags(
(
"flags", "flags",
EV_DEFAULT, EV_DEFAULT,
"SSSSSS", "SSSSSS",
@ -851,8 +850,7 @@ Event EV_EntityFlags
"god - makes the entity invincible\n", "god - makes the entity invincible\n",
EV_NORMAL EV_NORMAL
); );
Event EV_EntityRenderEffects Event EV_EntityRenderEffects(
(
"rendereffects", "rendereffects",
EV_DEFAULT, EV_DEFAULT,
"SSSSSS", "SSSSSS",
@ -873,8 +871,7 @@ Event EV_EntityRenderEffects
"'lightstyle' command to set the index of the light style to be used", "'lightstyle' command to set the index of the light style to be used",
EV_NORMAL EV_NORMAL
); );
Event EV_EntityEffects Event EV_EntityEffects(
(
"effects", "effects",
EV_DEFAULT, EV_DEFAULT,
"SSSSSS", "SSSSSS",
@ -886,8 +883,7 @@ Event EV_EntityEffects
"everyframe - process commands every time entity is rendered", "everyframe - process commands every time entity is rendered",
EV_NORMAL EV_NORMAL
); );
Event EV_EntitySVFlags Event EV_EntitySVFlags(
(
"svflags", "svflags",
EV_DEFAULT, EV_DEFAULT,
"SSSSSS", "SSSSSS",
@ -1071,8 +1067,8 @@ Event EV_Entity_Revive
EV_DEFAULT, EV_DEFAULT,
"f", "f",
"health", "health",
"sets the health, "sets the health,"
even if dead" "even if dead"
); );
Event EV_SetHealth Event EV_SetHealth
( (
@ -1193,20 +1189,22 @@ Event EV_AlwaysDraw
); );
Event EV_IsTouching Event EV_IsTouching
( (
"istouching", EV_DEFAULT, "istouching",
EV_DEFAULT,
"e", "e",
"ent", "ent",
"returns 1 if the entities are touching, "returns 1 if the entities are touching,"
0 if not", "0 if not",
EV_RETURN EV_RETURN
); );
Event EV_IsInside Event EV_IsInside
( (
"isinside", EV_DEFAULT, "isinside",
EV_DEFAULT,
"e", "e",
"ent", "ent",
"returns 1 if the entity is inside, "returns 1 if the entity is inside,"
0 if not", "0 if not",
EV_RETURN EV_RETURN
); );
Event EV_CanSee Event EV_CanSee
@ -1229,11 +1227,12 @@ Event EV_CanSeeNoEnts
); );
Event EV_Entity_InPVS Event EV_Entity_InPVS
( (
"inpvs", EV_DEFAULT, "inpvs",
EV_DEFAULT,
"e", "e",
"entity", "entity",
"returns 1 if the entities have connected pvs, "returns 1 if the entities have connected pvs,"
0 if not", "0 if not",
EV_RETURN EV_RETURN
); );
Event EV_SetShaderData Event EV_SetShaderData
@ -1380,20 +1379,50 @@ Event EV_Entity_GetRotatedBbox
"Gets te entity's bbox to rotate with it.", "Gets te entity's bbox to rotate with it.",
EV_GETTER EV_GETTER
); );
Event EV_Entity_SinglePlayerCommand( Event EV_Entity_SinglePlayerCommand
"sp", EV_DEFAULT, "sSSS", "command parms", "Makes a command be executed only in single player" (
"sp",
EV_DEFAULT,
"sSSS",
"command parms",
"Makes a command be executed only in single player",
EV_NORMAL
); );
Event EV_Entity_MultiPlayerCommand( Event EV_Entity_MultiPlayerCommand
"dm", EV_DEFAULT, "sSSS", "command parms", "Makes a command be executed only in multiplayer" (
"dm",
EV_DEFAULT,
"sSSS",
"command parms",
"Makes a command be executed only in multiplayer",
EV_NORMAL
); );
Event EV_Entity_RealismModeCommand( Event EV_Entity_RealismModeCommand
"realism", EV_DEFAULT, "sSSS", "command parms", "Makes a command be executed only in realism mode" (
"realism",
EV_DEFAULT,
"sSSS",
"command parms",
"Makes a command be executed only in realism mode",
EV_NORMAL
); );
Event EV_Entity_SPRealismModeCommand( Event EV_Entity_SPRealismModeCommand
"sprealism", EV_DEFAULT, "sSSS", "command parms", "Makes a command be executed only in single player realism mode" (
"sprealism",
EV_DEFAULT,
"sSSS",
"command parms",
"Makes a command be executed only in single player realism mode",
EV_NORMAL
); );
Event EV_Entity_DMRealismModeCommand( Event EV_Entity_DMRealismModeCommand
"dmrealism", EV_DEFAULT, "sSSS", "command parms", "Makes a command be executed only in multiplayer realism mode" (
"dmrealism",
EV_DEFAULT,
"sSSS",
"command parms",
"Makes a command be executed only in multiplayer realism mode",
EV_NORMAL
); );
Event EV_Entity_GetLocalYawFromVector Event EV_Entity_GetLocalYawFromVector
( (