3 void test_weapons_hurt(entity this)
5 EXPECT_NE(100, GetResourceAmount(this, RESOURCE_HEALTH));
14 noref Client a = it = NEW(Client, "A");
15 WITH(float, autocvar_g_spawnshieldtime, 0, Client_Add(it, NUM_TEAM_1));
16 it.origin = '-100 0 0';
19 noref Client b = it = NEW(Client, "B");
20 WITH(float, autocvar_g_spawnshieldtime, 0, Client_Add(it, NUM_TEAM_2));
21 it.origin = '100 0 0';
22 it.angles = '0 180 0';
25 PHYS_INPUT_BUTTON_ATCK(it) = true;
26 it.items |= IT_UNLIMITED_AMMO;
27 Weapon wep = WEP_VORTEX;
28 W_GiveWeapon(it, wep.m_id);
29 W_SwitchWeapon_Force(it, wep, weaponentities[0]);
32 PHYS_INPUT_BUTTON_JUMP(it) = true;
35 defer(it, wep.switchdelay_raise + 0.1, test_weapons_hurt);
44 noref Client bot = it = NEW(Client, "Rider");
45 Client_Add(it, NUM_TEAM_1);
46 it.origin = '0 0 100';
48 noref entity v = it = new(vehicle);
49 Vehicle veh = VEH_BUMBLEBEE;
50 it.active = ACTIVE_NOT;
51 vehicle_initialize(it, veh, false);