4 void func_pendulum_controller_think(
entity this)
11 this.
owner.avelocity_x = 0;
17 v = this.
owner.speed * v_forward_y + this.
cnt;
18 if(this.
owner.classname ==
"func_pendulum")
44 if(this.
dmg && (this.message2 ==
""))
45 this.message2 =
"was squished by";
52 this.avelocity_z = 0.0000001;
53 if (!InitMovingBrushTrigger(
this))
59 this.freq = 1 / (
M_PI * 2) *
sqrt(autocvar_sv_gravity / (3 *
max(8,
fabs(this.mins_z))));
63 this.cnt = this.angles_z;
66 controller =
new_pure(func_pendulum_controller);
67 controller.owner =
this;
68 controller.nextthink =
time + 1;
69 setthink(controller, func_pendulum_controller_think);
spawnfunc(info_player_attacker)
const int CH_TRIGGER_SINGLE
void SUB_NullThink(entity this)
float remainder(float e, float f)
#define new_pure(class)
purely logical entities (.origin doesn't work)