minigame_drawpic_centered( tile_pos,
minigame_texture(thepiece),
tile_size, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL );
- }
+ }
}
else if ( e.classname == "minigame_board_piece" )
{
default:
case BD_DIR_DN: theang = M_PI; break;
case BD_DIR_LF: theang = M_PI * 3 / 2; break;
- case BD_DIR_RT: theang = M_PI / 2; break;
+ case BD_DIR_RT: theang = M_PI / 2; break;
}
drawrotpic(tile_pos, theang, minigame_texture("bd/dozer"),
#ifdef SVQC
#include <common/monsters/sv_spawn.qh>
#endif
+#ifdef SVQC
+ #include <common/monsters/sv_spawner.qh>
+#endif
#include <common/monsters/monster/_mod.qh>
if(monster == "random")
{
- RandomSelection_Init();
+ RandomSelection_Init();
FOREACH(Monsters, it != MON_Null && !(it.spawnflags & MONSTER_TYPE_PASSIVE) && !(it.spawnflags & MON_FLAG_HIDDEN),
{
RandomSelection_AddEnt(it, 1, 1);
+#include "sv_spawner.qh"
#include "sv_spawn.qh"
void spawner_use(entity this, entity actor, entity trigger)
--- /dev/null
+#pragma once
if(!IS_DEAD(player))
{
vector plane_normal = PlayerTouchWall(player);
-
+
if(plane_normal != '0 0 0')
{
float wj_force = PHYS_WALLJUMP_FORCE(player);
spawnfunc(item_bullets)
{
- if(!weaponswapping && autocvar_sv_q3acompat_machineshotgunswap &&
+ if(!weaponswapping && autocvar_sv_q3acompat_machineshotgunswap &&
(this.classname != "droppedweapon"))
{
weaponswapping = true;
// generated file; do not modify
#include <common/triggers/target/changelevel.qh>
#include <common/triggers/target/include.qh>
+#include <common/triggers/target/kill.qh>
#include <common/triggers/target/levelwarp.qh>
#include <common/triggers/target/location.qh>
#include <common/triggers/target/music.qh>
+#include "kill.qh"
#include "location.qh"
#ifdef SVQC
--- /dev/null
+#pragma once
setthink(e, turrets_manager_think);
e.nextthink = time + 2;
}
-
+
entity targ = find(NULL, targetname, this.target);
if(targ.classname == "turret_checkpoint")
return; // turrets don't defend checkpoints?
WarpZone_StoreProjectileData(it);
});
}
-
+
FOREACH_CLIENT(true,
{
if(checkdistance)
{
this.aistatus &= ~AI_STATUS_RUNNING;
- // increase stop distance in case the goal is on a slope or a lower platform
+ // increase stop distance in case the goal is on a slope or a lower platform
if(bunnyhopdistance > autocvar_bot_ai_bunnyhop_stopdistance + (this.origin.z - gco.z))
PHYS_INPUT_BUTTON_JUMP(this) = true;
}
ENDCLASS(Spectator)
CLASS(Player, Client)
-
+
// custom
ATTRIB(Player, dual_weapons, vector, this.dual_weapons); // TODO: actually WepSet!