]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge breaking changes for 0.8.5 into 'master'
authorbones_was_here <bones_was_here@xa.org.au>
Fri, 17 Jun 2022 16:47:44 +0000 (16:47 +0000)
committerbones_was_here <bones_was_here@xa.org.au>
Fri, 17 Jun 2022 16:47:44 +0000 (16:47 +0000)
Closes #2434

See merge request xonotic/xonotic-data.pk3dir!1008

216 files changed:
.gitlab-ci.yml
gamemodes-client.cfg
gamemodes-server.cfg
models/monsters/golem.dpm [new file with mode: 0644]
models/monsters/golem.dpm.framegroups [new file with mode: 0644]
models/monsters/golem.dpm_0.sounds [new file with mode: 0644]
models/monsters/mage.dpm [deleted file]
models/monsters/mage.dpm.framegroups [deleted file]
models/monsters/nanomage.dpm [new file with mode: 0644]
models/monsters/nanomage.dpm.framegroups [new file with mode: 0644]
models/monsters/shambler.mdl [deleted file]
models/monsters/shambler.mdl.framegroups [deleted file]
models/monsters/shambler.mdl_0.sounds [deleted file]
models/monsters/spider.dpm
models/monsters/spider.dpm.framegroups
models/monsters/wizard.mdl [deleted file]
models/monsters/wizard.mdl.framegroups [deleted file]
models/monsters/wyvern.dpm [new file with mode: 0644]
models/monsters/wyvern.dpm.framegroups [new file with mode: 0644]
models/player/erebus.iqm_0.skin
models/player/erebus.iqm_1.skin
models/player/erebus_lod1.iqm_0.skin
models/player/erebus_lod1.iqm_1.skin
models/player/erebus_lod2.iqm_0.skin
models/player/erebus_lod2.iqm_1.skin
models/player/gak.iqm_0.skin
models/player/gak.iqm_1.skin
models/player/gak_lod1.iqm_0.skin
models/player/gak_lod1.iqm_1.skin
models/player/gak_lod2.iqm_0.skin
models/player/gak_lod2.iqm_1.skin
models/player/gakmasked.iqm_0.skin
models/player/gakmasked.iqm_1.skin
models/player/gakmasked_lod1.iqm_0.skin
models/player/gakmasked_lod1.iqm_1.skin
models/player/gakmasked_lod2.iqm_0.skin
models/player/gakmasked_lod2.iqm_1.skin
models/player/ignis.iqm_0.skin
models/player/ignis.iqm_1.skin
models/player/ignis_lod1.iqm_0.skin
models/player/ignis_lod1.iqm_1.skin
models/player/ignis_lod2.iqm_0.skin
models/player/ignis_lod2.iqm_1.skin
models/player/ignismasked.iqm_0.skin
models/player/ignismasked.iqm_1.skin
models/player/ignismasked_lod1.iqm_0.skin
models/player/ignismasked_lod1.iqm_1.skin
models/player/ignismasked_lod2.iqm_0.skin
models/player/ignismasked_lod2.iqm_1.skin
models/player/megaerebus.iqm_0.skin
models/player/megaerebus_lod1.iqm_0.skin
models/player/megaerebus_lod2.iqm_0.skin
models/player/nyx.iqm_0.skin
models/player/nyx.iqm_1.skin
models/player/nyx_lod1.iqm_0.skin
models/player/nyx_lod1.iqm_1.skin
models/player/nyx_lod2.iqm_0.skin
models/player/nyx_lod2.iqm_1.skin
models/player/pyria.iqm_0.skin
models/player/pyria.iqm_1.skin
models/player/pyria_lod1.iqm_0.skin
models/player/pyria_lod1.iqm_1.skin
models/player/pyria_lod2.iqm_0.skin
models/player/pyria_lod2.iqm_1.skin
models/player/seraphina.iqm_0.skin
models/player/seraphina.iqm_1.skin
models/player/seraphina_lod1.iqm_0.skin
models/player/seraphina_lod1.iqm_1.skin
models/player/seraphina_lod2.iqm_0.skin
models/player/seraphina_lod2.iqm_1.skin
models/player/seraphinamasked.iqm_0.skin
models/player/seraphinamasked.iqm_1.skin
models/player/seraphinamasked_lod1.iqm_0.skin
models/player/seraphinamasked_lod1.iqm_1.skin
models/player/seraphinamasked_lod2.iqm_0.skin
models/player/seraphinamasked_lod2.iqm_1.skin
models/player/umbra.iqm_0.skin
models/player/umbra.iqm_1.skin
models/player/umbra_lod1.iqm_0.skin
models/player/umbra_lod1.iqm_1.skin
models/player/umbra_lod2.iqm_0.skin
models/player/umbra_lod2.iqm_1.skin
monsters.cfg
notifications.cfg
qcsrc/client/csqcmodel_hooks.qc
qcsrc/client/csqcmodel_hooks.qh
qcsrc/client/main.qc
qcsrc/client/view.qc
qcsrc/client/weapons/projectile.qc
qcsrc/common/deathtypes/all.inc
qcsrc/common/gamemodes/gamemode/invasion/invasion.qh
qcsrc/common/gamemodes/gamemode/invasion/sv_invasion.qc
qcsrc/common/gamemodes/gamemode/invasion/sv_invasion.qh
qcsrc/common/mapobjects/func/breakable.qc
qcsrc/common/models/all.inc
qcsrc/common/monsters/monster.qh
qcsrc/common/monsters/monster/_mod.inc
qcsrc/common/monsters/monster/_mod.qh
qcsrc/common/monsters/monster/golem.qc [new file with mode: 0644]
qcsrc/common/monsters/monster/golem.qh [new file with mode: 0644]
qcsrc/common/monsters/monster/mage.qc
qcsrc/common/monsters/monster/mage.qh
qcsrc/common/monsters/monster/shambler.qc [deleted file]
qcsrc/common/monsters/monster/shambler.qh [deleted file]
qcsrc/common/monsters/monster/spider.qc
qcsrc/common/monsters/monster/spider.qh
qcsrc/common/monsters/monster/wyvern.qc
qcsrc/common/monsters/monster/wyvern.qh
qcsrc/common/monsters/monster/zombie.qc
qcsrc/common/monsters/sv_monsters.qc
qcsrc/common/monsters/sv_monsters.qh
qcsrc/common/notifications/all.inc
qcsrc/common/turrets/cl_turrets.qc
qcsrc/common/turrets/sv_turrets.qc
qcsrc/common/turrets/sv_turrets.qh
qcsrc/common/turrets/turret/ewheel.qc
qcsrc/common/turrets/turret/walker.qc
qcsrc/common/weapons/all.qh
qcsrc/common/weapons/projectiles.qh
qcsrc/menu/xonotic/dialog_monstertools.qc
qcsrc/menu/xonotic/util.qc
qcsrc/server/command/common.qc
qcsrc/server/world.qc
qcsrc/server/world.qh
scripts/golem.shader [new file with mode: 0644]
scripts/nanomage.shader [new file with mode: 0644]
scripts/player_erebus.shader
scripts/player_ignis.shader
scripts/spider.shader [new file with mode: 0644]
sound/monsters/golem/death1.wav [new file with mode: 0644]
sound/monsters/golem/death2.wav [new file with mode: 0644]
sound/monsters/golem/death3.wav [new file with mode: 0644]
sound/monsters/golem/idle1.wav [new file with mode: 0644]
sound/monsters/golem/idle2.wav [new file with mode: 0644]
sound/monsters/golem/melee.wav [new file with mode: 0644]
sound/monsters/golem/pain1.wav [new file with mode: 0644]
sound/monsters/golem/pain2.wav [new file with mode: 0644]
sound/monsters/golem/sight.wav [new file with mode: 0644]
sound/monsters/shambler/idle1.wav [deleted file]
sound/monsters/shambler/idle2.wav [deleted file]
sound/monsters/shambler/sight.wav [deleted file]
textures/erebusfullbright_glow.tga
textures/erebusfullbright_shirt.tga
textures/gakarmor_glow.tga
textures/gakarmor_shirt.tga [deleted file]
textures/gakarmorfb_glow.tga
textures/gakarmorfb_shirt.tga [deleted file]
textures/gakfullbright_glow.tga
textures/gakfullbright_shirt.tga
textures/glow_reflect.tga [new file with mode: 0644]
textures/golem.tga [new file with mode: 0644]
textures/golem_gloss.tga [new file with mode: 0644]
textures/golem_glow.tga [new file with mode: 0644]
textures/golem_norm.tga [new file with mode: 0644]
textures/golem_reflect.tga [new file with mode: 0644]
textures/golem_shirt.tga [new file with mode: 0644]
textures/ignis.tga
textures/ignis_glow.tga
textures/ignisfullbright.tga
textures/ignisfullbright_glow.tga
textures/ignisfullbright_shirt.tga
textures/ignishead.tga
textures/ignishead_glow.tga
textures/ignisheadfb.tga [new file with mode: 0644]
textures/ignisheadfb_gloss.tga [new file with mode: 0644]
textures/ignisheadfb_glow.tga [new file with mode: 0644]
textures/ignisheadfb_norm.tga [new file with mode: 0644]
textures/ignisheadfb_reflect.tga [new file with mode: 0644]
textures/ignisheadfb_shirt.tga [new file with mode: 0644]
textures/mage.tga [deleted file]
textures/mage_glow.tga [deleted file]
textures/mage_pants.tga [deleted file]
textures/megaerebus.tga [new file with mode: 0644]
textures/megaerebus_gloss.tga [new file with mode: 0644]
textures/megaerebus_glow.tga [new file with mode: 0644]
textures/megaerebus_norm.tga [new file with mode: 0644]
textures/megaerebus_reflect.tga [new file with mode: 0644]
textures/nanomage.tga [new file with mode: 0644]
textures/nanomage_gloss.tga [new file with mode: 0644]
textures/nanomage_glow.tga [new file with mode: 0644]
textures/nanomage_norm.tga [new file with mode: 0644]
textures/nanomage_reflect.tga [new file with mode: 0644]
textures/nanomage_shirt.tga [new file with mode: 0644]
textures/nyxfullbright_glow.tga
textures/nyxfullbright_shirt.tga
textures/pyria_glow.tga
textures/pyria_shirt.tga
textures/pyriafullbright_glow.tga
textures/pyriafullbright_shirt.tga
textures/shadowhead_shirt.tga
textures/shadowheadfb.tga [new file with mode: 0644]
textures/shadowheadfb_gloss.tga [new file with mode: 0644]
textures/shadowheadfb_glow.tga [new file with mode: 0644]
textures/shadowheadfb_norm.tga [new file with mode: 0644]
textures/shadowheadfb_reflect.tga [new file with mode: 0644]
textures/shadowheadfb_shirt.tga [new file with mode: 0644]
textures/spider.tga [new file with mode: 0644]
textures/spider_gloss.tga [new file with mode: 0644]
textures/spider_glow.tga [new file with mode: 0644]
textures/spider_norm.tga [new file with mode: 0644]
textures/spider_reflect.tga [new file with mode: 0644]
textures/spider_shirt.tga [new file with mode: 0644]
textures/spidertex.tga [deleted file]
textures/spidertex_glow.tga [deleted file]
textures/spidertex_pants.tga [deleted file]
textures/umbra_glow.tga
textures/umbra_shirt.tga
textures/umbrafullbright_glow.tga
textures/umbrafullbright_shirt.tga
textures/wyvern.tga [new file with mode: 0644]
textures/wyvern_gloss.tga [new file with mode: 0644]
textures/wyvern_norm.tga [new file with mode: 0644]
textures/wyvern_shirt.tga [new file with mode: 0644]
weapons.cfg [deleted file]
weapons.cfg.sh [deleted file]
xonotic-client.cfg

index 87bb7bb07c412caf7368bec7950418fa7f2eb4b2..8b56b81ff39f4e9dda7e29a01cca19b8d679fd06 100644 (file)
@@ -55,7 +55,7 @@ test_sv_game:
     - wget -O data/maps/stormkeep.waypoints https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/stormkeep.waypoints\r
     - wget -O data/maps/stormkeep.waypoints.cache https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/stormkeep.waypoints.cache\r
 \r
-    - EXPECT=458e9e611a757c745da05c85a37e576d\r
+    - EXPECT=8e36763a3b4590356bcc449b2452d0ea\r
     - HASH=$(${ENGINE} +timestamps 1 +exec serverbench.cfg\r
       | tee /dev/stderr\r
       | sed -e 's,^\[[^]]*\] ,,'\r
index c43b9d1d3f2e6fe73fddbb33e8489670350edc4d..71d272a174e7c50dcb868fa34e472d043668a250 100644 (file)
@@ -32,6 +32,6 @@ alias cl_hook_gamestart_ka
 alias cl_hook_gamestart_ft
 alias cl_hook_gamestart_inv
 alias cl_hook_gamestart_duel
-alias cl_hook_gameend "rpn /cl_matchcount dup load 1 + =" // increase match count every time a game ends
+alias cl_hook_gameend
 alias cl_hook_shutdown
 alias cl_hook_activeweapon
index 483b6ea3fb35ab435171bfaee61e012cfa416011..318749021fe8d329ae55e6cbb58de4eafb3486ef 100644 (file)
@@ -551,8 +551,6 @@ set g_invasion_monster_count 10 "number of monsters on first wave (increments)"
 set g_invasion_zombies_only 0 "only spawn zombies"
 set g_invasion_spawn_delay 0.25
 set g_invasion_spawnpoint_spawn_delay 0.5
-set g_invasion_teams 0 "number of teams in invasion (note: use mapinfo to set this)"
-set g_invasion_team_spawns 1 "use team spawns in teamplay invasion mode"
 set g_invasion_type 0 "type of invasion mode - 0: round-based, 1: hunting, 2: complete the stage (note: use mapinfo to set this)"
 
 // ======
diff --git a/models/monsters/golem.dpm b/models/monsters/golem.dpm
new file mode 100644 (file)
index 0000000..8a3bf37
Binary files /dev/null and b/models/monsters/golem.dpm differ
diff --git a/models/monsters/golem.dpm.framegroups b/models/monsters/golem.dpm.framegroups
new file mode 100644 (file)
index 0000000..c6fa58f
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+Generated framegroups file for golem
+Used by DarkPlaces to simulate frame groups in DPM models.
+*/
+
+1 21 5 1 // golem idle
+22 61 30 1 // golem run
+83 21 30 1 // golem runangry
+104 36 30 1 // golem melee01
+140 36 30 1 // golem melee02
+176 61 30 1 // golem melee03
+237 61 30 1 // golem melee04
+298 21 30 0 // golem hit01
+319 21 30 0 // golem hit02
+340 21 30 0 // golem hit03
+361 21 30 0 // golem hit04
+382 61 30 0 // golem hithard
+443 101 30 0 // golem enrage
+544 61 30 0 // golem death01
+605 2 30 0 // golem dead01
+607 36 30 0 // golem death02
+643 2 30 0 // golem dead01
+645 46 30 0 // golem deathback
+691 2 30 0 // golem deadback
+693 2 30 0 // golem dead01
+695 2 30 0 // golem dead01
+697 2 30 0 // golem dead01
+699 2 30 0 // golem dead01
+701 2 30 0 // golem dead01
diff --git a/models/monsters/golem.dpm_0.sounds b/models/monsters/golem.dpm_0.sounds
new file mode 100644 (file)
index 0000000..77d3c37
--- /dev/null
@@ -0,0 +1,8 @@
+//TAG: golem
+death sound/monsters/golem/death 3
+sight sound/monsters/golem/sight 0
+//ranged sound/monsters/golem/ranged 0
+melee sound/monsters/golem/melee 0
+pain sound/monsters/golem/pain 2
+//spawn sound/monsters/golem/spawn 0
+idle sound/monsters/golem/idle 2
diff --git a/models/monsters/mage.dpm b/models/monsters/mage.dpm
deleted file mode 100644 (file)
index 2e50fb5..0000000
Binary files a/models/monsters/mage.dpm and /dev/null differ
diff --git a/models/monsters/mage.dpm.framegroups b/models/monsters/mage.dpm.framegroups
deleted file mode 100644 (file)
index 4a72c65..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-Generated framegroups file for mage
-Used by DarkPlaces to simulate frame groups in DPM models.
-*/
-
-1 31 30 1 // mage idle
-32 31 30 1 // mage walk
-63 16 30 1 // mage attack
-79 16 30 1 // mage hit
-95 31 30 0 // mage die
-126 31 60 1 // mage walk
diff --git a/models/monsters/nanomage.dpm b/models/monsters/nanomage.dpm
new file mode 100644 (file)
index 0000000..b7c44dd
Binary files /dev/null and b/models/monsters/nanomage.dpm differ
diff --git a/models/monsters/nanomage.dpm.framegroups b/models/monsters/nanomage.dpm.framegroups
new file mode 100644 (file)
index 0000000..9042da1
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+Generated framegroups file for nanomage
+Used by DarkPlaces to simulate frame groups in DPM models.
+*/
+
+1 61 12 1 // nanomage idle
+62 9 10 1 // nanomage run
+71 71 30 0 // nanomage attack01
+142 43 30 0 // nanomage attack02
+185 61 30 0 // nanomage attack03
+246 101 30 0 // nanomage attack04
+347 11 30 0 // nanomage pain01
+358 16 30 0 // nanomage pain02
+374 31 30 0 // nanomage pain03
+405 86 30 0 // nanomage death01
+491 56 30 0 // nanomage death02
+547 2 1 0 // nanomage dead01
+549 2 1 0 // nanomage dead02
diff --git a/models/monsters/shambler.mdl b/models/monsters/shambler.mdl
deleted file mode 100644 (file)
index 2e23dfa..0000000
Binary files a/models/monsters/shambler.mdl and /dev/null differ
diff --git a/models/monsters/shambler.mdl.framegroups b/models/monsters/shambler.mdl.framegroups
deleted file mode 100644 (file)
index b003d56..0000000
+++ /dev/null
@@ -1 +0,0 @@
-1 16 10 1 // shambler stand\r18 11 10 1 // shambler walk\r31 5 10 1 // shambler run\r37 11 10 1 // shambler smash\r49 8 10 1 // shambler swing right\r58 8 10 1 // shambler swing left\r67 11 10 1 // shambler magic\r79 5 10 0 // shambler pain\r85 10 10 0 // shambler death
\ No newline at end of file
diff --git a/models/monsters/shambler.mdl_0.sounds b/models/monsters/shambler.mdl_0.sounds
deleted file mode 100644 (file)
index 7e16968..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-//TAG: shambler
-//death sound/monsters/shambler/death 0
-sight sound/monsters/shambler/sight 0
-//ranged sound/monsters/shambler/ranged 0
-//melee sound/monsters/shambler/melee 0
-//pain sound/monsters/shambler/pain 0
-//spawn sound/monsters/shambler/spawn 0
-idle sound/monsters/shambler/idle 2
index d0bc9ce5f27497de9dc3b1b4dfb9a04ea0e2daa6..b1e8d11e514e003e9b97f815785cd1603c6def11 100644 (file)
Binary files a/models/monsters/spider.dpm and b/models/monsters/spider.dpm differ
index 039a7c3caf466aa2be7e25d36106fec9329c4cd6..73d92e01fc664b399d6a59e613fee4d1533e89a0 100644 (file)
@@ -3,7 +3,21 @@ Generated framegroups file for spider
 Used by DarkPlaces to simulate frame groups in DPM models.
 */
 
-1 60 60 1 // spider idle
-61 41 120 1 // spider walk
-102 24 60 1 // spider attack
-125 10 60 1 // spider attack2
\ No newline at end of file
+1 51 30 0 // spider spiderbite
+52 51 30 0 // spider spiderdeath01
+103 51 30 0 // spider spiderdeath02
+154 11 30 0 // spider spiderfire01
+165 31 30 0 // spider spiderfire02
+196 51 5 1 // spider spideridle
+247 51 30 0 // spider spiderintimidate
+298 11 25 0 // spider spiderpain01
+309 11 25 0 // spider spiderpain02
+320 11 15 0 // spider spiderpain03
+331 101 30 1 // spider spiderwalkforward
+432 101 30 1 // spider spiderwalkforwardright
+533 101 30 1 // spider spiderwalkright
+634 101 30 1 // spider spiderwalkbackright
+735 101 30 1 // spider spiderwalkback
+836 101 30 1 // spider spiderwalkbackleft
+937 101 30 1 // spider spiderwalkleft
+1038 101 30 1 // spider spiderwalkforwardleft
diff --git a/models/monsters/wizard.mdl b/models/monsters/wizard.mdl
deleted file mode 100644 (file)
index b130ba0..0000000
Binary files a/models/monsters/wizard.mdl and /dev/null differ
diff --git a/models/monsters/wizard.mdl.framegroups b/models/monsters/wizard.mdl.framegroups
deleted file mode 100644 (file)
index c51109a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-1 14 10 1 // wizard hover\r16 13 10 1 // wizard fly\r30 12 10 1 // wizard magic attack\r43 3 10 0 // wizard pain\r47 7 10 0 // wizard death
\ No newline at end of file
diff --git a/models/monsters/wyvern.dpm b/models/monsters/wyvern.dpm
new file mode 100644 (file)
index 0000000..3d2bab7
Binary files /dev/null and b/models/monsters/wyvern.dpm differ
diff --git a/models/monsters/wyvern.dpm.framegroups b/models/monsters/wyvern.dpm.framegroups
new file mode 100644 (file)
index 0000000..0791d6f
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+Generated framegroups file for wyvern
+Used by DarkPlaces to simulate frame groups in DPM models.
+*/
+
+1 101 30 1 // wyvern idle
+102 101 30 1 // wyvern glide
+203 101 30 1 // wyvern fly
+304 26 30 0 // wyvern pain1
+330 26 30 0 // wyvern pain2
+356 51 30 0 // wyvern melee
+407 51 30 0 // wyvern fireball
+458 101 30 1 // wyvern dying
+559 26 30 0 // wyvern dead
index 81c4f3bae7e96d8961eba00957c5e322fb2515ae..9f5f7b7dc3c00399f1cdede129aa0a2abd775097 100644 (file)
@@ -1,2 +1,2 @@
-erebus,erebus
-erebus.001,shadowhead
+erebus,erebusfullbright
+erebus.001,shadowheadfb
index 4597ceff1e90809a4e999ac1302734e1ef751b9c..81c4f3bae7e96d8961eba00957c5e322fb2515ae 100644 (file)
@@ -1,2 +1,2 @@
-erebus,erebusfullbright
+erebus,erebus
 erebus.001,shadowhead
index 81c4f3bae7e96d8961eba00957c5e322fb2515ae..9f5f7b7dc3c00399f1cdede129aa0a2abd775097 100644 (file)
@@ -1,2 +1,2 @@
-erebus,erebus
-erebus.001,shadowhead
+erebus,erebusfullbright
+erebus.001,shadowheadfb
index 4597ceff1e90809a4e999ac1302734e1ef751b9c..81c4f3bae7e96d8961eba00957c5e322fb2515ae 100644 (file)
@@ -1,2 +1,2 @@
-erebus,erebusfullbright
+erebus,erebus
 erebus.001,shadowhead
index 81c4f3bae7e96d8961eba00957c5e322fb2515ae..9f5f7b7dc3c00399f1cdede129aa0a2abd775097 100644 (file)
@@ -1,2 +1,2 @@
-erebus,erebus
-erebus.001,shadowhead
+erebus,erebusfullbright
+erebus.001,shadowheadfb
index 4597ceff1e90809a4e999ac1302734e1ef751b9c..81c4f3bae7e96d8961eba00957c5e322fb2515ae 100644 (file)
@@ -1,2 +1,2 @@
-erebus,erebusfullbright
+erebus,erebus
 erebus.001,shadowhead
index f2da16714c50ab517650bc3f54bd3f01d504ee92..3844f6ceb72c7a255ee43970f78dd74c6c05e15a 100644 (file)
@@ -1,2 +1,2 @@
-gak2.001,gakarmor
-gak2,gak
+gak2.001,gakarmorfb
+gak2,gakfullbright
index 3844f6ceb72c7a255ee43970f78dd74c6c05e15a..f2da16714c50ab517650bc3f54bd3f01d504ee92 100644 (file)
@@ -1,2 +1,2 @@
-gak2.001,gakarmorfb
-gak2,gakfullbright
+gak2.001,gakarmor
+gak2,gak
index f2da16714c50ab517650bc3f54bd3f01d504ee92..3844f6ceb72c7a255ee43970f78dd74c6c05e15a 100644 (file)
@@ -1,2 +1,2 @@
-gak2.001,gakarmor
-gak2,gak
+gak2.001,gakarmorfb
+gak2,gakfullbright
index 3844f6ceb72c7a255ee43970f78dd74c6c05e15a..f2da16714c50ab517650bc3f54bd3f01d504ee92 100644 (file)
@@ -1,2 +1,2 @@
-gak2.001,gakarmorfb
-gak2,gakfullbright
+gak2.001,gakarmor
+gak2,gak
index f2da16714c50ab517650bc3f54bd3f01d504ee92..3844f6ceb72c7a255ee43970f78dd74c6c05e15a 100644 (file)
@@ -1,2 +1,2 @@
-gak2.001,gakarmor
-gak2,gak
+gak2.001,gakarmorfb
+gak2,gakfullbright
index 3844f6ceb72c7a255ee43970f78dd74c6c05e15a..f2da16714c50ab517650bc3f54bd3f01d504ee92 100644 (file)
@@ -1,2 +1,2 @@
-gak2.001,gakarmorfb
-gak2,gakfullbright
+gak2.001,gakarmor
+gak2,gak
index 2df68ec5aad706cf7859cef9d332daa3cb54bed6..802db3e155a94101dbe15f65f242d5f15b42f37d 100644 (file)
@@ -1,2 +1,2 @@
-gak3,gak
-gak3.001,gakarmor
+gak3,gakfullbright
+gak3.001,gakarmorfb
index 802db3e155a94101dbe15f65f242d5f15b42f37d..2df68ec5aad706cf7859cef9d332daa3cb54bed6 100644 (file)
@@ -1,2 +1,2 @@
-gak3,gakfullbright
-gak3.001,gakarmorfb
+gak3,gak
+gak3.001,gakarmor
index 2df68ec5aad706cf7859cef9d332daa3cb54bed6..802db3e155a94101dbe15f65f242d5f15b42f37d 100644 (file)
@@ -1,2 +1,2 @@
-gak3,gak
-gak3.001,gakarmor
+gak3,gakfullbright
+gak3.001,gakarmorfb
index 802db3e155a94101dbe15f65f242d5f15b42f37d..2df68ec5aad706cf7859cef9d332daa3cb54bed6 100644 (file)
@@ -1,2 +1,2 @@
-gak3,gakfullbright
-gak3.001,gakarmorfb
+gak3,gak
+gak3.001,gakarmor
index 2df68ec5aad706cf7859cef9d332daa3cb54bed6..802db3e155a94101dbe15f65f242d5f15b42f37d 100644 (file)
@@ -1,2 +1,2 @@
-gak3,gak
-gak3.001,gakarmor
+gak3,gakfullbright
+gak3.001,gakarmorfb
index 802db3e155a94101dbe15f65f242d5f15b42f37d..2df68ec5aad706cf7859cef9d332daa3cb54bed6 100644 (file)
@@ -1,2 +1,2 @@
-gak3,gakfullbright
-gak3.001,gakarmorfb
+gak3,gak
+gak3.001,gakarmor
index a0e69e9fc730a9a7773bea4cc2bca52c680e5e31..f31cd8df5c8edad2ea9172723db013f435a383f0 100644 (file)
@@ -1,2 +1,2 @@
-ignis1,ignis
-ignis1.001,ignishead
+ignis1,ignisfullbright
+ignis1.001,ignisheadfb
index 2c93e982f5c75564477526e1c36af0b4190d3f25..a0e69e9fc730a9a7773bea4cc2bca52c680e5e31 100644 (file)
@@ -1,2 +1,2 @@
-ignis1,ignisfullbright
+ignis1,ignis
 ignis1.001,ignishead
index a0e69e9fc730a9a7773bea4cc2bca52c680e5e31..f31cd8df5c8edad2ea9172723db013f435a383f0 100644 (file)
@@ -1,2 +1,2 @@
-ignis1,ignis
-ignis1.001,ignishead
+ignis1,ignisfullbright
+ignis1.001,ignisheadfb
index 2c93e982f5c75564477526e1c36af0b4190d3f25..a0e69e9fc730a9a7773bea4cc2bca52c680e5e31 100644 (file)
@@ -1,2 +1,2 @@
-ignis1,ignisfullbright
+ignis1,ignis
 ignis1.001,ignishead
index a0e69e9fc730a9a7773bea4cc2bca52c680e5e31..f31cd8df5c8edad2ea9172723db013f435a383f0 100644 (file)
@@ -1,2 +1,2 @@
-ignis1,ignis
-ignis1.001,ignishead
+ignis1,ignisfullbright
+ignis1.001,ignisheadfb
index 2c93e982f5c75564477526e1c36af0b4190d3f25..a0e69e9fc730a9a7773bea4cc2bca52c680e5e31 100644 (file)
@@ -1,2 +1,2 @@
-ignis1,ignisfullbright
+ignis1,ignis
 ignis1.001,ignishead
index d46d1576ac3b5303c04e57a43b0b6afeeac9d944..a02196161086c9ff3b813ecb5261f0118c31d4cc 100644 (file)
@@ -1,2 +1,2 @@
-ignis1,ignis
-ignis3,ignishead
+ignis1,ignisfullbright
+ignis3,ignisheadfb
index eb257cc1d619d04464532624c435455cf4ee04e9..d46d1576ac3b5303c04e57a43b0b6afeeac9d944 100644 (file)
@@ -1,2 +1,2 @@
-ignis1,ignisfullbright
+ignis1,ignis
 ignis3,ignishead
index d46d1576ac3b5303c04e57a43b0b6afeeac9d944..a02196161086c9ff3b813ecb5261f0118c31d4cc 100644 (file)
@@ -1,2 +1,2 @@
-ignis1,ignis
-ignis3,ignishead
+ignis1,ignisfullbright
+ignis3,ignisheadfb
index eb257cc1d619d04464532624c435455cf4ee04e9..d46d1576ac3b5303c04e57a43b0b6afeeac9d944 100644 (file)
@@ -1,2 +1,2 @@
-ignis1,ignisfullbright
+ignis1,ignis
 ignis3,ignishead
index d46d1576ac3b5303c04e57a43b0b6afeeac9d944..a02196161086c9ff3b813ecb5261f0118c31d4cc 100644 (file)
@@ -1,2 +1,2 @@
-ignis1,ignis
-ignis3,ignishead
+ignis1,ignisfullbright
+ignis3,ignisheadfb
index eb257cc1d619d04464532624c435455cf4ee04e9..d46d1576ac3b5303c04e57a43b0b6afeeac9d944 100644 (file)
@@ -1,2 +1,2 @@
-ignis1,ignisfullbright
+ignis1,ignis
 ignis3,ignishead
index 4597ceff1e90809a4e999ac1302734e1ef751b9c..977140f6bd996c62d6e85d7729ac2c0757dac9dd 100644 (file)
@@ -1,2 +1,2 @@
-erebus,erebusfullbright
-erebus.001,shadowhead
+erebus,megaerebus
+erebus.001,shadowheadfb
index 4597ceff1e90809a4e999ac1302734e1ef751b9c..977140f6bd996c62d6e85d7729ac2c0757dac9dd 100644 (file)
@@ -1,2 +1,2 @@
-erebus,erebusfullbright
-erebus.001,shadowhead
+erebus,megaerebus
+erebus.001,shadowheadfb
index 4597ceff1e90809a4e999ac1302734e1ef751b9c..977140f6bd996c62d6e85d7729ac2c0757dac9dd 100644 (file)
@@ -1,2 +1,2 @@
-erebus,erebusfullbright
-erebus.001,shadowhead
+erebus,megaerebus
+erebus.001,shadowheadfb
index 383252cb85732d565c5b24abe2c445c1fcd22378..2d1096323d0029a08276fee90318e648f626ea90 100644 (file)
@@ -1,2 +1,2 @@
-nyx,nyx
-nyx.001,shadowhead
+nyx,nyxfullbright
+nyx.001,shadowheadfb
index 19b5fd59b1380c68a3369bdfdb18ad41d77588b4..383252cb85732d565c5b24abe2c445c1fcd22378 100644 (file)
@@ -1,2 +1,2 @@
-nyx,nyxfullbright
+nyx,nyx
 nyx.001,shadowhead
index 383252cb85732d565c5b24abe2c445c1fcd22378..2d1096323d0029a08276fee90318e648f626ea90 100644 (file)
@@ -1,2 +1,2 @@
-nyx,nyx
-nyx.001,shadowhead
+nyx,nyxfullbright
+nyx.001,shadowheadfb
index 19b5fd59b1380c68a3369bdfdb18ad41d77588b4..383252cb85732d565c5b24abe2c445c1fcd22378 100644 (file)
@@ -1,2 +1,2 @@
-nyx,nyxfullbright
+nyx,nyx
 nyx.001,shadowhead
index 383252cb85732d565c5b24abe2c445c1fcd22378..2d1096323d0029a08276fee90318e648f626ea90 100644 (file)
@@ -1,2 +1,2 @@
-nyx,nyx
-nyx.001,shadowhead
+nyx,nyxfullbright
+nyx.001,shadowheadfb
index 19b5fd59b1380c68a3369bdfdb18ad41d77588b4..383252cb85732d565c5b24abe2c445c1fcd22378 100644 (file)
@@ -1,2 +1,2 @@
-nyx,nyxfullbright
+nyx,nyx
 nyx.001,shadowhead
index 7533a4c53adab086fe9866c766df919d631666f7..1932354e8078c3f24947504da7bbb93390c5a51a 100644 (file)
@@ -1,2 +1,2 @@
 pyria_obj.001,pyriahair
-pyria_obj,pyria
+pyria_obj,pyriafullbright
index 1932354e8078c3f24947504da7bbb93390c5a51a..7533a4c53adab086fe9866c766df919d631666f7 100644 (file)
@@ -1,2 +1,2 @@
 pyria_obj.001,pyriahair
-pyria_obj,pyriafullbright
+pyria_obj,pyria
index 7533a4c53adab086fe9866c766df919d631666f7..1932354e8078c3f24947504da7bbb93390c5a51a 100644 (file)
@@ -1,2 +1,2 @@
 pyria_obj.001,pyriahair
-pyria_obj,pyria
+pyria_obj,pyriafullbright
index 1932354e8078c3f24947504da7bbb93390c5a51a..7533a4c53adab086fe9866c766df919d631666f7 100644 (file)
@@ -1,2 +1,2 @@
 pyria_obj.001,pyriahair
-pyria_obj,pyriafullbright
+pyria_obj,pyria
index 7533a4c53adab086fe9866c766df919d631666f7..1932354e8078c3f24947504da7bbb93390c5a51a 100644 (file)
@@ -1,2 +1,2 @@
 pyria_obj.001,pyriahair
-pyria_obj,pyria
+pyria_obj,pyriafullbright
index 1932354e8078c3f24947504da7bbb93390c5a51a..7533a4c53adab086fe9866c766df919d631666f7 100644 (file)
@@ -1,2 +1,2 @@
 pyria_obj.001,pyriahair
-pyria_obj,pyriafullbright
+pyria_obj,pyria
index a8ea4ee62784799220586f63c1b4f3b8bc4be9ef..cf702a3c2a0d7f9aec42f3148bf71d9be608c66f 100644 (file)
@@ -1,2 +1,2 @@
 ignis42.001,seraphina
-ignis42,ignis
+ignis42,ignisfullbright
index cf702a3c2a0d7f9aec42f3148bf71d9be608c66f..a8ea4ee62784799220586f63c1b4f3b8bc4be9ef 100644 (file)
@@ -1,2 +1,2 @@
 ignis42.001,seraphina
-ignis42,ignisfullbright
+ignis42,ignis
index a8ea4ee62784799220586f63c1b4f3b8bc4be9ef..cf702a3c2a0d7f9aec42f3148bf71d9be608c66f 100644 (file)
@@ -1,2 +1,2 @@
 ignis42.001,seraphina
-ignis42,ignis
+ignis42,ignisfullbright
index cf702a3c2a0d7f9aec42f3148bf71d9be608c66f..a8ea4ee62784799220586f63c1b4f3b8bc4be9ef 100644 (file)
@@ -1,2 +1,2 @@
 ignis42.001,seraphina
-ignis42,ignisfullbright
+ignis42,ignis
index a8ea4ee62784799220586f63c1b4f3b8bc4be9ef..cf702a3c2a0d7f9aec42f3148bf71d9be608c66f 100644 (file)
@@ -1,2 +1,2 @@
 ignis42.001,seraphina
-ignis42,ignis
+ignis42,ignisfullbright
index cf702a3c2a0d7f9aec42f3148bf71d9be608c66f..a8ea4ee62784799220586f63c1b4f3b8bc4be9ef 100644 (file)
@@ -1,2 +1,2 @@
 ignis42.001,seraphina
-ignis42,ignisfullbright
+ignis42,ignis
index 7138ad587e31e81451b941144041fa5ffec81ec0..1e69498f9f182535a562647f447e95bab549d14a 100644 (file)
@@ -1,2 +1,2 @@
-ignis42,ignis
-ignis42.002,ignishead
+ignis42,ignisfullbright
+ignis42.002,ignisheadfb
index 7b94ebe4a4e61e1d7e0803fb86a91a60fb3ecf4e..7138ad587e31e81451b941144041fa5ffec81ec0 100644 (file)
@@ -1,2 +1,2 @@
-ignis42,ignisfullbright
+ignis42,ignis
 ignis42.002,ignishead
index 7138ad587e31e81451b941144041fa5ffec81ec0..1e69498f9f182535a562647f447e95bab549d14a 100644 (file)
@@ -1,2 +1,2 @@
-ignis42,ignis
-ignis42.002,ignishead
+ignis42,ignisfullbright
+ignis42.002,ignisheadfb
index 7b94ebe4a4e61e1d7e0803fb86a91a60fb3ecf4e..7138ad587e31e81451b941144041fa5ffec81ec0 100644 (file)
@@ -1,2 +1,2 @@
-ignis42,ignisfullbright
+ignis42,ignis
 ignis42.002,ignishead
index 7138ad587e31e81451b941144041fa5ffec81ec0..1e69498f9f182535a562647f447e95bab549d14a 100644 (file)
@@ -1,2 +1,2 @@
-ignis42,ignis
-ignis42.002,ignishead
+ignis42,ignisfullbright
+ignis42.002,ignisheadfb
index 7b94ebe4a4e61e1d7e0803fb86a91a60fb3ecf4e..7138ad587e31e81451b941144041fa5ffec81ec0 100644 (file)
@@ -1,2 +1,2 @@
-ignis42,ignisfullbright
+ignis42,ignis
 ignis42.002,ignishead
index 447eeadfc469438ba7ce79de9414f258c51bac10..cb9c3d051749bd9c6ff3ec919fc1f2e487df1993 100644 (file)
@@ -1 +1 @@
-umbra,umbra
+umbra,umbrafullbright
index cb9c3d051749bd9c6ff3ec919fc1f2e487df1993..447eeadfc469438ba7ce79de9414f258c51bac10 100644 (file)
@@ -1 +1 @@
-umbra,umbrafullbright
+umbra,umbra
index 447eeadfc469438ba7ce79de9414f258c51bac10..cb9c3d051749bd9c6ff3ec919fc1f2e487df1993 100644 (file)
@@ -1 +1 @@
-umbra,umbra
+umbra,umbrafullbright
index cb9c3d051749bd9c6ff3ec919fc1f2e487df1993..447eeadfc469438ba7ce79de9414f258c51bac10 100644 (file)
@@ -1 +1 @@
-umbra,umbrafullbright
+umbra,umbra
index 447eeadfc469438ba7ce79de9414f258c51bac10..cb9c3d051749bd9c6ff3ec919fc1f2e487df1993 100644 (file)
@@ -1 +1 @@
-umbra,umbra
+umbra,umbrafullbright
index cb9c3d051749bd9c6ff3ec919fc1f2e487df1993..447eeadfc469438ba7ce79de9414f258c51bac10 100644 (file)
@@ -1 +1 @@
-umbra,umbrafullbright
+umbra,umbra
index ac6039041f5f3e98f492f8263ce48b6a490b901e..3f94f96319e05a1452863c5380e46d6ebfc2eaf6 100644 (file)
@@ -5,7 +5,7 @@ set g_monster_zombie_attack_leap_force 55
 set g_monster_zombie_attack_leap_speed 500
 set g_monster_zombie_attack_melee_damage 55
 set g_monster_zombie_attack_melee_delay 1
-set g_monster_zombie_damageforcescale 0.550000012
+set g_monster_zombie_damageforcescale 0.55
 set g_monster_zombie_health 200
 set g_monster_zombie_speed_run 600
 set g_monster_zombie_speed_stop 100
@@ -15,21 +15,24 @@ set g_monster_zombie_speed_walk 300
 set g_monster_spider_attack_bite_damage 35
 set g_monster_spider_attack_bite_delay 1.5
 set g_monster_spider_attack_web_damagetime 7
-set g_monster_spider_attack_web_delay 1.5
+set g_monster_spider_attack_web_delay 3
+set g_monster_spider_attack_web_range 800
 set g_monster_spider_attack_web_speed 1300
 set g_monster_spider_attack_web_speed_up 150
-set g_monster_spider_damageforcescale 0.600000024
+set g_monster_spider_damageforcescale 0.6
 set g_monster_spider_health 180
 set g_monster_spider_speed_run 500
 set g_monster_spider_speed_stop 100
 set g_monster_spider_speed_walk 400
 // }}}
 // {{{ #3: Mage
+set g_monster_mage_attack_push_chance 0.7
 set g_monster_mage_attack_push_damage 25
 set g_monster_mage_attack_push_delay 1
 set g_monster_mage_attack_push_force 300
 set g_monster_mage_attack_push_radius 150
 set g_monster_mage_attack_spike_accel 480
+set g_monster_mage_attack_spike_chance 0.45
 set g_monster_mage_attack_spike_damage 45
 set g_monster_mage_attack_spike_decel 480
 set g_monster_mage_attack_spike_delay 2
@@ -40,6 +43,10 @@ set g_monster_mage_attack_spike_smart_trace_max 2500
 set g_monster_mage_attack_spike_smart_trace_min 1000
 set g_monster_mage_attack_spike_speed_max 370
 set g_monster_mage_attack_spike_turnrate 0.65
+set g_monster_mage_attack_teleport_chance 0.1
+set g_monster_mage_attack_teleport_delay 5
+set g_monster_mage_attack_teleport_random 0.4
+set g_monster_mage_attack_teleport_random_range 1200
 set g_monster_mage_damageforcescale 0.5
 set g_monster_mage_heal_allies 20
 set g_monster_mage_heal_delay 1.5
@@ -61,28 +68,29 @@ set g_monster_wyvern_attack_fireball_edgedamage 20
 set g_monster_wyvern_attack_fireball_force 50
 set g_monster_wyvern_attack_fireball_radius 120
 set g_monster_wyvern_attack_fireball_speed 1200
-set g_monster_wyvern_damageforcescale 0.600000024
+set g_monster_wyvern_damageforcescale 0.6
 set g_monster_wyvern_health 150
 set g_monster_wyvern_speed_run 250
 set g_monster_wyvern_speed_stop 300
 set g_monster_wyvern_speed_walk 120
 // }}}
-// {{{ #5: Shambler
-set g_monster_shambler_attack_claw_damage 60
-set g_monster_shambler_attack_lightning_damage 25
-set g_monster_shambler_attack_lightning_damage_zap 15
-set g_monster_shambler_attack_lightning_force 100
-set g_monster_shambler_attack_lightning_radius 50
-set g_monster_shambler_attack_lightning_radius_zap 250
-set g_monster_shambler_attack_lightning_speed 1000
-set g_monster_shambler_attack_lightning_speed_up 150
-set g_monster_shambler_attack_smash_damage 50
-set g_monster_shambler_attack_smash_range 0
-set g_monster_shambler_damageforcescale 0.100000001
-set g_monster_shambler_health 650
-set g_monster_shambler_speed_run 320
-set g_monster_shambler_speed_stop 300
-set g_monster_shambler_speed_walk 150
+// {{{ #5: Golem
+set g_monster_golem_attack_claw_damage 60
+set g_monster_golem_attack_lightning_damage 25
+set g_monster_golem_attack_lightning_damage_zap 15
+set g_monster_golem_attack_lightning_force 100
+set g_monster_golem_attack_lightning_radius 50
+set g_monster_golem_attack_lightning_radius_zap 250
+set g_monster_golem_attack_lightning_speed 1000
+set g_monster_golem_attack_lightning_speed_up 150
+set g_monster_golem_attack_smash_damage 50
+set g_monster_golem_attack_smash_force 100
+set g_monster_golem_attack_smash_range 200
+set g_monster_golem_damageforcescale 0.1
+set g_monster_golem_health 650
+set g_monster_golem_speed_run 320
+set g_monster_golem_speed_stop 300
+set g_monster_golem_speed_walk 150
 // }}}
 
 // {{{ Misc
@@ -96,7 +104,7 @@ set g_monsters_drop_time 10
 set g_monsters_ignoretraces 1
 set g_monsters_lineofsight 1
 set g_monsters_owners 1
-set g_monsters_teams 1
+set g_monsters_playerclip_collisions 1
 set g_monsters_score_kill 0
 set g_monsters_score_spawned 0
 set g_monsters_sounds 1
@@ -105,6 +113,7 @@ set g_monsters_typefrag 1
 set g_monsters_target_range 2000
 set g_monsters_target_infront 0
 set g_monsters_target_infront_range 0.3
+set g_monsters_target_infront_2d 1
 set g_monsters_attack_range 120
 set g_monsters_respawn 1
 set g_monsters_respawn_delay 20
index 83fbcaf849fb23be8a46febd075b598fcf3d28a5..afae1593f61610c61d4e0e4d3a6eb04249854cb1 100644 (file)
@@ -162,10 +162,10 @@ seta notification_INFO_DEATH_SELF_FALL "1" "0 = off, 1 = print to console, 2 = p
 seta notification_INFO_DEATH_SELF_FIRE "1" "0 = off, 1 = print to console, 2 = print to console and chatbox (if notification_allow_chatboxprint is enabled)"
 seta notification_INFO_DEATH_SELF_GENERIC "1" "0 = off, 1 = print to console, 2 = print to console and chatbox (if notification_allow_chatboxprint is enabled)"
 seta notification_INFO_DEATH_SELF_LAVA "1" "0 = off, 1 = print to console, 2 = print to console and chatbox (if notification_allow_chatboxprint is enabled)"
+seta notification_INFO_DEATH_SELF_MON_GOLEM_CLAW "1" "0 = off, 1 = print to console, 2 = print to console and chatbox (if notification_allow_chatboxprint is enabled)"
+seta notification_INFO_DEATH_SELF_MON_GOLEM_SMASH "1" "0 = off, 1 = print to console, 2 = print to console and chatbox (if notification_allow_chatboxprint is enabled)"
+seta notification_INFO_DEATH_SELF_MON_GOLEM_ZAP "1" "0 = off, 1 = print to console, 2 = print to console and chatbox (if notification_allow_chatboxprint is enabled)"
 seta notification_INFO_DEATH_SELF_MON_MAGE "1" "0 = off, 1 = print to console, 2 = print to console and chatbox (if notification_allow_chatboxprint is enabled)"
-seta notification_INFO_DEATH_SELF_MON_SHAMBLER_CLAW "1" "0 = off, 1 = print to console, 2 = print to console and chatbox (if notification_allow_chatboxprint is enabled)"
-seta notification_INFO_DEATH_SELF_MON_SHAMBLER_SMASH "1" "0 = off, 1 = print to console, 2 = print to console and chatbox (if notification_allow_chatboxprint is enabled)"
-seta notification_INFO_DEATH_SELF_MON_SHAMBLER_ZAP "1" "0 = off, 1 = print to console, 2 = print to console and chatbox (if notification_allow_chatboxprint is enabled)"
 seta notification_INFO_DEATH_SELF_MON_SPIDER "1" "0 = off, 1 = print to console, 2 = print to console and chatbox (if notification_allow_chatboxprint is enabled)"
 seta notification_INFO_DEATH_SELF_MON_WYVERN "1" "0 = off, 1 = print to console, 2 = print to console and chatbox (if notification_allow_chatboxprint is enabled)"
 seta notification_INFO_DEATH_SELF_MON_ZOMBIE_JUMP "1" "0 = off, 1 = print to console, 2 = print to console and chatbox (if notification_allow_chatboxprint is enabled)"
@@ -578,10 +578,10 @@ seta notification_DEATH_SELF_FALL "1" "Enable this multiple notification"
 seta notification_DEATH_SELF_FIRE "1" "Enable this multiple notification"
 seta notification_DEATH_SELF_GENERIC "1" "Enable this multiple notification"
 seta notification_DEATH_SELF_LAVA "1" "Enable this multiple notification"
+seta notification_DEATH_SELF_MON_GOLEM_CLAW "1" "Enable this multiple notification"
+seta notification_DEATH_SELF_MON_GOLEM_SMASH "1" "Enable this multiple notification"
+seta notification_DEATH_SELF_MON_GOLEM_ZAP "1" "Enable this multiple notification"
 seta notification_DEATH_SELF_MON_MAGE "1" "Enable this multiple notification"
-seta notification_DEATH_SELF_MON_SHAMBLER_CLAW "1" "Enable this multiple notification"
-seta notification_DEATH_SELF_MON_SHAMBLER_SMASH "1" "Enable this multiple notification"
-seta notification_DEATH_SELF_MON_SHAMBLER_ZAP "1" "Enable this multiple notification"
 seta notification_DEATH_SELF_MON_SPIDER "1" "Enable this multiple notification"
 seta notification_DEATH_SELF_MON_WYVERN "1" "Enable this multiple notification"
 seta notification_DEATH_SELF_MON_ZOMBIE_JUMP "1" "Enable this multiple notification"
index 7c9234fae33511d22a321fe1188f550c14c8cd3e..121af1947a9b256ae2b4e0e7013ea4865db10898 100644 (file)
 .int lodmodelindex0;
 .int lodmodelindex1;
 .int lodmodelindex2;
-void CSQCPlayer_LOD_Apply(entity this)
+void CSQCPlayer_LOD_Apply(entity this, bool isplayer)
 {
+       int detailreduction = ((isplayer) ? autocvar_cl_playerdetailreduction : autocvar_cl_modeldetailreduction);
+
        // LOD model loading
        if(this.lodmodelindex0 != this.modelindex)
        {
@@ -63,19 +65,19 @@ void CSQCPlayer_LOD_Apply(entity this)
        }
 
        // apply LOD
-       if(autocvar_cl_playerdetailreduction <= 0)
+       if(detailreduction <= 0)
        {
-               if(autocvar_cl_playerdetailreduction <= -2)
+               if(detailreduction <= -2)
                        this.modelindex = this.lodmodelindex2;
-               else if(autocvar_cl_playerdetailreduction <= -1)
+               else if(detailreduction <= -1)
                        this.modelindex = this.lodmodelindex1;
                else
                        this.modelindex = this.lodmodelindex0;
        }
        else
        {
-               float distance = vlen(this.origin - view_origin);
-               float f = (distance * current_viewzoom + 100.0) * autocvar_cl_playerdetailreduction;
+               float distance = vlen(((isplayer) ? this.origin : NearestPointOnBox(this, view_origin)) - view_origin); // TODO: perhaps it should just use NearestPointOnBox all the time, player hitbox can potentially be huge
+               float f = (distance * current_viewzoom + 100.0) * detailreduction;
                f *= 1.0 / bound(0.01, view_quality, 1);
                if(f > autocvar_cl_loddistance2)
                        this.modelindex = this.lodmodelindex2;
@@ -328,7 +330,7 @@ void CSQCPlayer_ModelAppearance_Apply(entity this, bool islocalplayer)
 
        // GLOWMOD AND DEATH FADING
        if(this.colormap > 0)
-               this.glowmod = colormapPaletteColor(((this.colormap >= 1024) ? this.colormap : entcs_GetClientColors(this.colormap - 1)) & 0x0F, true) * 2;
+               this.glowmod = colormapPaletteColor(((this.colormap >= 1024) ? this.colormap : entcs_GetClientColors(this.colormap - 1)) & 0x0F, true);
        else
                this.glowmod = '1 1 1';
 
@@ -346,6 +348,10 @@ void CSQCPlayer_ModelAppearance_Apply(entity this, bool islocalplayer)
                }
        }
 
+       // don't let the engine increase player's glowmod
+       if (autocvar_r_hdr_glowintensity > 1)
+               this.glowmod /= autocvar_r_hdr_glowintensity;
+
        //printf("CSQCPlayer_ModelAppearance_Apply(): state = %s, colormap = %f, glowmod = %s\n", (this.csqcmodel_isdead ? "DEAD" : "ALIVE"), this.colormap, vtos(this.glowmod));
 }
 
@@ -663,7 +669,7 @@ void CSQCModel_Hook_PreDraw(entity this, bool isplayer)
        if((this.isplayermodel & ISPLAYER_MODEL) && this.drawmask) // this checks if it's a player MODEL!
        {
                CSQCPlayer_ModelAppearance_Apply(this, (this.isplayermodel & ISPLAYER_LOCAL));
-               CSQCPlayer_LOD_Apply(this);
+               CSQCPlayer_LOD_Apply(this, true);
 
                if(!isplayer)
                {
@@ -741,6 +747,8 @@ void CSQCModel_Hook_PreDraw(entity this, bool isplayer)
                        }
                }
        }
+       else
+               CSQCPlayer_LOD_Apply(this, false);
 
        CSQCModel_AutoTagIndex_Apply(this);
 
index 16cc29a0b06b10da56bb51174145dde8cd95df79..165008ee940e76de7fd51ba1956c6057e566129f 100644 (file)
@@ -17,6 +17,7 @@ string autocvar__cl_playermodel;
 float autocvar_cl_deathglow;
 float autocvar_cl_deathglow_min = 0.5;
 float autocvar_cl_jetpack_attenuation = 2;
+float autocvar_r_hdr_glowintensity;
 
 // FEATURE: EF_NODRAW workalike
 const int EF_BRIGHTFIELD       = BIT(0);
index 091cc466183efecd96bda5291383c2aab720acda..40d6cbbc2b6c2d4a93727927645993e04ed7b524 100644 (file)
@@ -178,7 +178,14 @@ void Shutdown()
                if (!(calledhooks & HOOK_START))
                        localcmd("\n_cl_hook_gamestart nop\n");
                if (!(calledhooks & HOOK_END))
+               {
+                       int gamecount = cvar("cl_matchcount");
                        localcmd("\ncl_hook_gameend\n");
+                       // NOTE: using localcmd here to ensure it's executed AFTER cl_hook_gameend
+                       // earlier versions of the game abuse the hook to set this cvar
+                       localcmd(strcat("cl_matchcount ", itos(gamecount + 1), "\n"));
+                       //cvar_set("cl_matchcount", itos(gamecount + 1));
+               }
        }
 
        localcmd("\ncl_hook_shutdown\n");
index a183c82d0ad04e2482cf522e73b94399d596cffd..530324656373d1346762879984b5473795df5af5 100644 (file)
@@ -1653,7 +1653,12 @@ void CSQC_UpdateView(entity this, float w, float h)
        {
                if(calledhooks & HOOK_START)
                {
+                       int gamecount = cvar("cl_matchcount");
                        localcmd("\ncl_hook_gameend\n");
+                       // NOTE: using localcmd here to ensure it's executed AFTER cl_hook_gameend
+                       // earlier versions of the game abuse the hook to set this cvar
+                       localcmd(strcat("cl_matchcount ", itos(gamecount + 1), "\n"));
+                       //cvar_set("cl_matchcount", itos(gamecount + 1));
                        calledhooks |= HOOK_END;
                }
        }
index 5132b4998916f9e9a60f6bb86c6523560b0e2149..1df65036ec59a83b10feeba19544c818ee939e9a 100644 (file)
@@ -276,7 +276,7 @@ NET_HANDLE(ENT_CLIENT_PROJECTILE, bool isnew)
                // TODO: projectiles use glowmaps for their color, not teams
                #if 0
                if(this.colormap > 0)
-                       this.glowmod = colormapPaletteColor(this.colormap & 0x0F, true) * 2;
+                       this.glowmod = colormapPaletteColor(this.colormap & 0x0F, true);
                else
                        this.glowmod = '1 1 1';
                #endif
@@ -317,7 +317,7 @@ NET_HANDLE(ENT_CLIENT_PROJECTILE, bool isnew)
                        HANDLE(SEEKER)             this.traileffect = EFFECT_SEEKER_TRAIL.m_id; break;
 
                        HANDLE(MAGE_SPIKE)         this.traileffect = EFFECT_TR_VORESPIKE.m_id; break;
-                       HANDLE(SHAMBLER_LIGHTNING) this.traileffect = EFFECT_TR_NEXUIZPLASMA.m_id; break;
+                       HANDLE(GOLEM_LIGHTNING)    this.traileffect = EFFECT_TR_NEXUIZPLASMA.m_id; break;
 
                        HANDLE(RAPTORBOMB)         this.gravity = 1; this.avelocity = '0 0 180'; this.traileffect = EFFECT_Null.m_id; break;
                        HANDLE(RAPTORBOMBLET)      this.gravity = 1; this.avelocity = '0 0 180'; this.traileffect = EFFECT_Null.m_id; break;
@@ -379,7 +379,7 @@ NET_HANDLE(ENT_CLIENT_PROJECTILE, bool isnew)
                                this.bouncefactor = WEP_CVAR(mortar, bouncefactor);
                                this.bouncestop = WEP_CVAR(mortar, bouncestop);
                                break;
-                       case PROJECTILE_SHAMBLER_LIGHTNING:
+                       case PROJECTILE_GOLEM_LIGHTNING:
                                this.mins = '-8 -8 -8';
                                this.maxs = '8 8 8';
                                this.scale = 2.5;
index c11e5fedf0091dad5db74ea5772f3eed14f47c5e..ac42a5bb25a15644f420f482ea6e3c4f56767a71 100644 (file)
@@ -12,9 +12,9 @@ REGISTER_DEATHTYPE(KILL,                    DEATH_SELF_SUICIDE,             NULL
 REGISTER_DEATHTYPE(LAVA,                    DEATH_SELF_LAVA,                DEATH_MURDER_LAVA,              "")
 REGISTER_DEATHTYPE(MIRRORDAMAGE,            DEATH_SELF_BETRAYAL,            NULL,                           "")
 REGISTER_DEATHTYPE(MONSTER_MAGE,            DEATH_SELF_MON_MAGE,            DEATH_MURDER_MONSTER,           "monster")
-REGISTER_DEATHTYPE(MONSTER_SHAMBLER_CLAW,   DEATH_SELF_MON_SHAMBLER_CLAW,   DEATH_MURDER_MONSTER,           "monster")
-REGISTER_DEATHTYPE(MONSTER_SHAMBLER_SMASH,  DEATH_SELF_MON_SHAMBLER_SMASH,  DEATH_MURDER_MONSTER,           "monster")
-REGISTER_DEATHTYPE(MONSTER_SHAMBLER_ZAP,    DEATH_SELF_MON_SHAMBLER_ZAP,    DEATH_MURDER_MONSTER,           "monster")
+REGISTER_DEATHTYPE(MONSTER_GOLEM_CLAW,      DEATH_SELF_MON_GOLEM_CLAW,      DEATH_MURDER_MONSTER,           "monster")
+REGISTER_DEATHTYPE(MONSTER_GOLEM_SMASH,     DEATH_SELF_MON_GOLEM_SMASH,     DEATH_MURDER_MONSTER,           "monster")
+REGISTER_DEATHTYPE(MONSTER_GOLEM_ZAP,       DEATH_SELF_MON_GOLEM_ZAP,       DEATH_MURDER_MONSTER,           "monster")
 REGISTER_DEATHTYPE(MONSTER_SPIDER,          DEATH_SELF_MON_SPIDER,          DEATH_MURDER_MONSTER,           "monster")
 REGISTER_DEATHTYPE(MONSTER_WYVERN,          DEATH_SELF_MON_WYVERN,          DEATH_MURDER_MONSTER,           "monster")
 REGISTER_DEATHTYPE(MONSTER_ZOMBIE_JUMP,     DEATH_SELF_MON_ZOMBIE_JUMP,     DEATH_MURDER_MONSTER,           "monster")
index 2195b84c71f6597713a3fba5e956213735d5ed87..7ac091d5cd31cb3858d4ac6e267978a7b4c66c8f 100644 (file)
@@ -5,14 +5,11 @@
 CLASS(Invasion, Gametype)
     INIT(Invasion)
     {
-        this.gametype_init(this, _("Invasion"),"inv","g_invasion",GAMETYPE_FLAG_USEPOINTS,"","pointlimit=50 teams=0 type=0",_("Survive against waves of monsters"));
+        this.gametype_init(this, _("Invasion"),"inv","g_invasion",GAMETYPE_FLAG_USEPOINTS,"","pointlimit=50 type=0",_("Survive against waves of monsters"));
     }
     METHOD(Invasion, m_parse_mapinfo, bool(string k, string v))
     {
         switch (k) {
-            case "teams":
-                cvar_set("g_invasion_teams", v);
-                return true;
             case "type":
                 cvar_set("g_invasion_type", v);
                 return true;
index 7b47ecec6980f086bfabd7e7d1f7475c3071fdd9..a28b7140929dfb9e28df5902ea6ca80c151eaac8 100644 (file)
@@ -90,7 +90,7 @@ int WinningCondition_Invasion()
                        if(it.winning)
                        {
                                bprint("Invasion: round completed.\n");
-                               // winners already set (TODO: teamplay support)
+                               // winners already set
 
                                status = WINNING_YES;
                                break;
@@ -129,8 +129,8 @@ Monster invasion_PickMonster(int supermonster_count)
 
        FOREACH(Monsters, it != MON_Null,
        {
-               if((it.spawnflags & MON_FLAG_HIDDEN) || (it.spawnflags & MONSTER_TYPE_PASSIVE) || (it.spawnflags & MONSTER_TYPE_FLY) || (it.spawnflags & MONSTER_TYPE_SWIM) ||
-                       (it.spawnflags & MONSTER_SIZE_QUAKE) || ((it.spawnflags & MON_FLAG_SUPERMONSTER) && supermonster_count >= 1))
+               if((it.spawnflags & MON_FLAG_HIDDEN) || (it.spawnflags & MONSTER_TYPE_PASSIVE) || (it.spawnflags & MONSTER_TYPE_FLY) || (it.spawnflags & MONSTER_TYPE_SWIM)
+                       || (it.spawnflags & MONSTER_SIZE_QUAKE) || ((it.spawnflags & MON_FLAG_SUPERMONSTER) && supermonster_count >= 1))
                        continue;
                if(autocvar_g_invasion_zombies_only && !(it.spawnflags & MONSTER_TYPE_UNDEAD))
                        continue;
@@ -200,7 +200,10 @@ void invasion_SpawnChosenMonster(Monster mon)
                setsize(e, mon.m_mins, mon.m_maxs);
 
                if(MoveToRandomMapLocation(e, DPCONTENTS_SOLID | DPCONTENTS_CORPSE | DPCONTENTS_PLAYERCLIP, DPCONTENTS_SLIME | DPCONTENTS_LAVA | DPCONTENTS_SKY | DPCONTENTS_BODY | DPCONTENTS_DONOTENTER, Q3SURFACEFLAG_SKY, 10, 1024, 256))
+               {
                        monster = spawnmonster(e, tospawn, mon, NULL, NULL, e.origin, false, false, 2);
+                       monster.angles_x = monster.angles_z = 0;
+               }
                else
                {
                        delete(e);
@@ -222,32 +225,6 @@ void invasion_SpawnChosenMonster(Monster mon)
                monster.target2 = spawn_point.target2;
        }
 
-       if(teamplay)
-       {
-               if(spawn_point && spawn_point.team && inv_monsters_perteam[spawn_point.team] > 0)
-                       monster.team = spawn_point.team;
-               else
-               {
-                       RandomSelection_Init();
-                       if(inv_monsters_perteam[NUM_TEAM_1] > 0) RandomSelection_AddFloat(NUM_TEAM_1, 1, 1);
-                       if(inv_monsters_perteam[NUM_TEAM_2] > 0) RandomSelection_AddFloat(NUM_TEAM_2, 1, 1);
-                       if(invasion_teams >= 3) if(inv_monsters_perteam[NUM_TEAM_3] > 0) { RandomSelection_AddFloat(NUM_TEAM_3, 1, 1); }
-                       if(invasion_teams >= 4) if(inv_monsters_perteam[NUM_TEAM_4] > 0) { RandomSelection_AddFloat(NUM_TEAM_4, 1, 1); }
-
-                       monster.team = RandomSelection_chosen_float;
-               }
-
-               monster_setupcolors(monster);
-
-               if(monster.sprite)
-               {
-                       WaypointSprite_UpdateTeamRadar(monster.sprite, RADARICON_DANGER, ((monster.team) ? Team_ColorRGB(monster.team) : '1 0 0'));
-
-                       monster.sprite.team = 0;
-                       monster.sprite.SendFlags |= 1;
-               }
-       }
-
        if(monster.monster_attack)
                IL_REMOVE(g_monster_targets, monster);
        monster.monster_attack = false; // it's the player's job to kill all the monsters
@@ -279,22 +256,13 @@ bool Invasion_CheckWinner()
                return 1;
        }
 
-       float total_alive_monsters = 0, supermonster_count = 0, red_alive = 0, blue_alive = 0, yellow_alive = 0, pink_alive = 0;
+       float total_alive_monsters = 0, supermonster_count = 0;
 
        IL_EACH(g_monsters, GetResource(it, RES_HEALTH) > 0,
        {
                if(it.monsterdef.spawnflags & MON_FLAG_SUPERMONSTER)
                        ++supermonster_count;
                ++total_alive_monsters;
-
-               if(teamplay)
-               switch(it.team)
-               {
-                       case NUM_TEAM_1: ++red_alive; break;
-                       case NUM_TEAM_2: ++blue_alive; break;
-                       case NUM_TEAM_3: ++yellow_alive; break;
-                       case NUM_TEAM_4: ++pink_alive; break;
-               }
        });
 
        if((total_alive_monsters + inv_numkilled) < inv_maxspawned && inv_maxcurrent < inv_maxspawned)
@@ -311,48 +279,20 @@ bool Invasion_CheckWinner()
        if(inv_numspawned < 1)
                return 0; // nothing has spawned yet
 
-       if(teamplay)
-       {
-               if(((red_alive > 0) + (blue_alive > 0) + (yellow_alive > 0) + (pink_alive > 0)) > 1)
-                       return 0;
-       }
-       else if(inv_numkilled < inv_maxspawned)
+       if(inv_numkilled < inv_maxspawned)
                return 0;
 
        entity winner = NULL;
-       float winning_score = 0, winner_team = 0;
+       float winning_score = 0;
 
-
-       if(teamplay)
-       {
-               if(red_alive > 0) { winner_team = NUM_TEAM_1; }
-               if(blue_alive > 0)
-               {
-                       if(winner_team) { winner_team = 0; }
-                       else { winner_team = NUM_TEAM_2; }
-               }
-               if(yellow_alive > 0)
-               {
-                       if(winner_team) { winner_team = 0; }
-                       else { winner_team = NUM_TEAM_3; }
-               }
-               if(pink_alive > 0)
+       FOREACH_CLIENT(IS_PLAYER(it), {
+               float cs = GameRules_scoring_add(it, KILLS, 0);
+               if(cs > winning_score)
                {
-                       if(winner_team) { winner_team = 0; }
-                       else { winner_team = NUM_TEAM_4; }
+                       winning_score = cs;
+                       winner = it;
                }
-       }
-       else
-       {
-               FOREACH_CLIENT(IS_PLAYER(it), {
-                       float cs = GameRules_scoring_add(it, KILLS, 0);
-                       if(cs > winning_score)
-                       {
-                               winning_score = cs;
-                               winner = it;
-                       }
-               });
-       }
+       });
 
        IL_EACH(g_monsters, true,
        {
@@ -360,15 +300,7 @@ bool Invasion_CheckWinner()
        });
        IL_CLEAR(g_monsters);
 
-       if(teamplay)
-       {
-               if(winner_team)
-               {
-                       Send_Notification(NOTIF_ALL, NULL, MSG_CENTER, APP_TEAM_NUM(winner_team, CENTER_ROUND_TEAM_WIN));
-                       Send_Notification(NOTIF_ALL, NULL, MSG_INFO, APP_TEAM_NUM(winner_team, INFO_ROUND_TEAM_WIN));
-               }
-       }
-       else if(winner)
+       if(winner)
        {
                Send_Notification(NOTIF_ALL, NULL, MSG_CENTER, CENTER_ROUND_PLAYER_WIN, winner.netname);
                Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_ROUND_PLAYER_WIN, winner.netname);
@@ -402,15 +334,6 @@ void Invasion_RoundStart()
        inv_numkilled = 0;
 
        inv_maxspawned = rint(max(autocvar_g_invasion_monster_count, autocvar_g_invasion_monster_count * (inv_roundcnt * 0.5)));
-
-       if(teamplay)
-       {
-               DistributeEvenly_Init(inv_maxspawned, invasion_teams);
-               inv_monsters_perteam[NUM_TEAM_1] = DistributeEvenly_Get(1);
-               inv_monsters_perteam[NUM_TEAM_2] = DistributeEvenly_Get(1);
-               if(invasion_teams >= 3) inv_monsters_perteam[NUM_TEAM_3] = DistributeEvenly_Get(1);
-               if(invasion_teams >= 4) inv_monsters_perteam[NUM_TEAM_4] = DistributeEvenly_Get(1);
-       }
 }
 
 MUTATOR_HOOKFUNCTION(inv, MonsterDies)
@@ -425,18 +348,13 @@ MUTATOR_HOOKFUNCTION(inv, MonsterDies)
                        inv_numkilled += 1;
                        inv_maxcurrent -= 1;
                }
-               if(teamplay) { inv_monsters_perteam[frag_target.team] -= 1; }
 
                if(IS_PLAYER(frag_attacker))
                {
-                       if(SAME_TEAM(frag_attacker, frag_target)) // in non-teamplay modes, same team = same player, so this works
+                       if(SAME_TEAM(frag_attacker, frag_target))
                                GameRules_scoring_add(frag_attacker, KILLS, -1);
                        else
-                       {
                                GameRules_scoring_add(frag_attacker, KILLS, +1);
-                               if(teamplay)
-                                       TeamScore_AddToTeam(frag_attacker.team, ST_INV_KILLS, +1);
-                       }
                }
        }
 }
@@ -547,44 +465,28 @@ MUTATOR_HOOKFUNCTION(inv, CheckRules_World)
        return true;
 }
 
-MUTATOR_HOOKFUNCTION(inv, TeamBalance_CheckAllowedTeams, CBC_ORDER_EXCLUSIVE)
-{
-       M_ARGV(0, float) = invasion_teams;
-       return true;
-}
-
 MUTATOR_HOOKFUNCTION(inv, AllowMobButcher)
 {
        M_ARGV(0, string) = "This command does not work during an invasion!";
        return true;
 }
 
-void invasion_ScoreRules(int inv_teams)
+void invasion_ScoreRules()
 {
        GameRules_score_enabled(false);
-       GameRules_scoring(inv_teams, 0, 0, {
-           if (inv_teams) {
-            field_team(ST_INV_KILLS, "frags", SFL_SORT_PRIO_PRIMARY);
-           }
-           field(SP_KILLS, "frags", ((inv_teams) ? SFL_SORT_PRIO_SECONDARY : SFL_SORT_PRIO_PRIMARY));
+       GameRules_scoring(0, 0, 0, {
+           field(SP_KILLS, "kills", SFL_SORT_PRIO_PRIMARY);
        });
 }
 
-void invasion_DelayedInit(entity this) // Do this check with a delay so we can wait for teams to be set up.
+void invasion_DelayedInit(entity this)
 {
        if(autocvar_g_invasion_type == INV_TYPE_HUNT || autocvar_g_invasion_type == INV_TYPE_STAGE)
                cvar_set("fraglimit", "0");
 
-       if(autocvar_g_invasion_teams)
-       {
-               invasion_teams = BITS(bound(2, autocvar_g_invasion_teams, 4));
-       }
-       else
-               invasion_teams = 0;
-
        independent_players = 1; // to disable extra useless scores
 
-       invasion_ScoreRules(invasion_teams);
+       invasion_ScoreRules();
 
        independent_players = 0;
 
index 3c16e34e18dea1b1179760cadb65aea08c3a0ce9..9d01851a93bddce830da24f10994d66ced731d24 100644 (file)
@@ -2,9 +2,7 @@
 
 #include <common/mutators/base.qh>
 #define autocvar_g_invasion_point_limit cvar("g_invasion_point_limit")
-int autocvar_g_invasion_teams;
 int autocvar_g_invasion_type;
-bool autocvar_g_invasion_team_spawns;
 bool g_invasion;
 IntrusiveList g_invasion_roundends;
 IntrusiveList g_invasion_waves;
@@ -19,10 +17,6 @@ REGISTER_MUTATOR(inv, false)
                g_invasion_roundends = IL_NEW();
                g_invasion_waves = IL_NEW();
                g_invasion_spawns = IL_NEW();
-               if (autocvar_g_invasion_teams >= 2) {
-                       GameRules_teams(true);
-                       GameRules_spawning_teams(autocvar_g_invasion_team_spawns);
-               }
         GameRules_limit_score(autocvar_g_invasion_point_limit);
 
                g_invasion = true;
@@ -32,21 +26,16 @@ REGISTER_MUTATOR(inv, false)
        return 0;
 }
 
-float inv_numspawned;
-float inv_maxspawned;
-float inv_roundcnt;
-float inv_maxrounds;
-float inv_numkilled;
+int inv_numspawned;
+int inv_maxspawned;
+int inv_roundcnt;
+int inv_maxrounds;
+int inv_numkilled;
 float inv_lastcheck;
-float inv_maxcurrent;
-
-float invasion_teams;
-float inv_monsters_perteam[17];
+int inv_maxcurrent;
 
 float inv_monsterskill;
 
-const float ST_INV_KILLS = 1;
-
 const int INV_TYPE_ROUND = 0; // round-based waves of enemies
 const int INV_TYPE_HUNT = 1; // clear the map of placed enemies
 const int INV_TYPE_STAGE = 2; // reach the end of the level
index ea71499fdb6b634bcbe2b9d381cc2a3a9534b238..6064603591492332ac4089011059b7e6f708bcbd 100644 (file)
@@ -354,6 +354,7 @@ void func_breakable_setup(entity this)
                this.takedamage = DAMAGE_NO;
                this.event_damage = func_null;
                this.bot_attack = false;
+               this.monster_attack = false;
        }
 
        // precache all the models
@@ -374,6 +375,9 @@ void func_breakable_setup(entity this)
        this.reset = func_breakable_reset;
        this.reset(this);
 
+       if(this.monster_attack)
+               IL_PUSH(g_monster_targets, this);
+
        IL_PUSH(g_initforplayer, this);
        this.init_for_player = func_breakable_init_for_player;
 
index 5107a5cc8d2f78f1a7c2d7d46989b411dbfb6825..56f07d2b49a81090ec7d07b80d79c26cf1846afb 100644 (file)
@@ -104,7 +104,7 @@ MODEL(PROJECTILE_FLAC,                  "models/hagarmissile.mdl");
 MODEL(PROJECTILE_SEEKER,                "models/tagrocket.md3");
 
 MODEL(PROJECTILE_MAGE_SPIKE,            "models/ebomb.mdl");
-MODEL(PROJECTILE_SHAMBLER_LIGHTNING,    "models/ebomb.mdl");
+MODEL(PROJECTILE_GOLEM_LIGHTNING,       "models/ebomb.mdl");
 
 MODEL(PROJECTILE_RAPTORBOMB,            "models/vehicles/clusterbomb.md3");
 MODEL(PROJECTILE_RAPTORBOMBLET,         "models/vehicles/bomblet.md3");
index 5d79c4a838a0e05e1227655c89b6d1c015ef07e6..9a111539949811bad6ffe63611c1429a1f8ca6a4 100644 (file)
@@ -4,7 +4,7 @@
 const int MONSTER_RESPAWN_DEATHPOINT = BIT(4); // re-spawn where we died
 const int MONSTER_TYPE_FLY = BIT(5);
 const int MONSTER_TYPE_SWIM = BIT(6);
-const int MONSTER_SIZE_BROKEN = BIT(7); // TODO: remove when bad models are replaced
+// bit 7 now unused
 const int MON_FLAG_SUPERMONSTER = BIT(8); // incredibly powerful monster
 const int MON_FLAG_RANGED = BIT(9); // monster shoots projectiles
 const int MON_FLAG_MELEE = BIT(10);
@@ -47,6 +47,8 @@ CLASS(Monster, Object)
     METHOD(Monster, mr_setup, bool(Monster this, entity actor)) { TC(Monster, this); return false; }
     /** (SERVER) logic to run every frame */
     METHOD(Monster, mr_think, bool(Monster this, entity actor)) { TC(Monster, this); return false; }
+    /** (SERVER) logic to run every frame after the monster has died */
+    METHOD(Monster, mr_deadthink, bool(Monster this, entity actor)) { TC(Monster, this); return false; }
     /** (SERVER) called when monster dies */
     METHOD(Monster, mr_death, bool(Monster this, entity actor)) { TC(Monster, this); return false; }
     /** (SERVER) called when monster is damaged */
index 23e649ab875810fd2cee74738d10a18c2146d5ed..df8decfa30387328957bd5d2b8864ffc006e58c8 100644 (file)
@@ -1,6 +1,6 @@
 // generated file; do not modify
+#include <common/monsters/monster/golem.qc>
 #include <common/monsters/monster/mage.qc>
-#include <common/monsters/monster/shambler.qc>
 #include <common/monsters/monster/spider.qc>
 #include <common/monsters/monster/wyvern.qc>
 #include <common/monsters/monster/zombie.qc>
index a1c048d0f4c9fdbb1bfd8ca1aabe86f9fd136904..0b1d099057ed561498ca787434d36215ab135b1e 100644 (file)
@@ -1,6 +1,6 @@
 // generated file; do not modify
+#include <common/monsters/monster/golem.qh>
 #include <common/monsters/monster/mage.qh>
-#include <common/monsters/monster/shambler.qh>
 #include <common/monsters/monster/spider.qh>
 #include <common/monsters/monster/wyvern.qh>
 #include <common/monsters/monster/zombie.qh>
diff --git a/qcsrc/common/monsters/monster/golem.qc b/qcsrc/common/monsters/monster/golem.qc
new file mode 100644 (file)
index 0000000..8762dd9
--- /dev/null
@@ -0,0 +1,282 @@
+#include "golem.qh"
+
+#ifdef SVQC
+float autocvar_g_monster_golem_health;
+float autocvar_g_monster_golem_damageforcescale = 0.1;
+float autocvar_g_monster_golem_attack_smash_damage;
+float autocvar_g_monster_golem_attack_smash_force = 100;
+float autocvar_g_monster_golem_attack_smash_range = 200;
+float autocvar_g_monster_golem_attack_claw_damage;
+float autocvar_g_monster_golem_attack_lightning_damage;
+float autocvar_g_monster_golem_attack_lightning_damage_zap = 15;
+float autocvar_g_monster_golem_attack_lightning_force;
+float autocvar_g_monster_golem_attack_lightning_radius;
+float autocvar_g_monster_golem_attack_lightning_radius_zap;
+float autocvar_g_monster_golem_attack_lightning_speed;
+float autocvar_g_monster_golem_attack_lightning_speed_up;
+float autocvar_g_monster_golem_speed_stop;
+float autocvar_g_monster_golem_speed_run;
+float autocvar_g_monster_golem_speed_walk;
+
+.float golem_lastattack; // delay attacks separately
+
+void M_Golem_Attack_Smash(entity this)
+{
+       makevectors(this.angles);
+       Send_Effect(EFFECT_EXPLOSION_MEDIUM, (this.origin + (v_forward * 150)) - ('0 0 1' * this.maxs.z), '0 0 0', 1);
+       sound(this, CH_SHOTS, SND_ROCKET_IMPACT, VOL_BASE, ATTEN_NORM);
+
+       vector loc = this.origin + v_forward * 50;
+
+       entity dmgent = spawn();
+       dmgent.owner = dmgent.realowner = this;
+       setorigin(dmgent, loc);
+       RadiusDamage (dmgent, this, (autocvar_g_monster_golem_attack_smash_damage) * MONSTER_SKILLMOD(this), (autocvar_g_monster_golem_attack_smash_damage * 0.5) * MONSTER_SKILLMOD(this), 
+                                       autocvar_g_monster_golem_attack_smash_range, this, NULL, autocvar_g_monster_golem_attack_smash_force, DEATH_MONSTER_GOLEM_SMASH.m_id, DMG_NOWEP, NULL);
+       delete(dmgent);
+}
+
+void M_Golem_Attack_Swing(entity this)
+{
+       Monster_Attack_Melee(this, this.enemy, (autocvar_g_monster_golem_attack_claw_damage), ((random() >= 0.5) ? this.anim_melee2 : this.anim_melee3), this.attack_range, 0.8, DEATH_MONSTER_GOLEM_CLAW.m_id, true);
+}
+
+#include <common/effects/qc/_mod.qh>
+
+void M_Golem_Attack_Lightning_Explode(entity this, entity directhitentity)
+{
+       sound(this, CH_SHOTS, SND_ELECTRO_IMPACT, VOL_BASE, ATTEN_NORM);
+       Send_Effect(EFFECT_ELECTRO_IMPACT, this.origin, '0 0 0', 1);
+
+       this.event_damage = func_null;
+       this.takedamage = DAMAGE_NO;
+       set_movetype(this, MOVETYPE_NONE);
+       this.velocity = '0 0 0';
+
+       if(this.move_movetype == MOVETYPE_NONE)
+               this.velocity = this.oldvelocity;
+
+       RadiusDamage (this, this.realowner, (autocvar_g_monster_golem_attack_lightning_damage), (autocvar_g_monster_golem_attack_lightning_damage), (autocvar_g_monster_golem_attack_lightning_radius),
+                                       NULL, NULL, (autocvar_g_monster_golem_attack_lightning_force), this.projectiledeathtype, DMG_NOWEP, directhitentity);
+
+       FOREACH_ENTITY_RADIUS(this.origin, autocvar_g_monster_golem_attack_lightning_radius_zap, it != this.realowner && it.takedamage,
+       {
+               te_csqc_lightningarc(this.origin, it.origin);
+               Damage(it, this, this.realowner, (autocvar_g_monster_golem_attack_lightning_damage_zap) * MONSTER_SKILLMOD(this), DEATH_MONSTER_GOLEM_ZAP.m_id, DMG_NOWEP, it.origin, '0 0 0');
+       });
+
+       setthink(this, SUB_Remove);
+       this.nextthink = time + 0.2;
+}
+
+void M_Golem_Attack_Lightning_Explode_use(entity this, entity actor, entity trigger)
+{
+       M_Golem_Attack_Lightning_Explode(this, trigger);
+}
+
+void M_Golem_Attack_Lightning_Damage(entity this, entity inflictor, entity attacker, float damage, int deathtype, .entity weaponentity, vector hitloc, vector force)
+{
+       if (GetResource(this, RES_HEALTH) <= 0)
+               return;
+
+       if (!W_CheckProjectileDamage(inflictor.realowner, this.realowner, deathtype, -1)) // no exceptions
+               return; // g_projectiles_damage says to halt
+
+       TakeResource(this, RES_HEALTH, damage);
+
+       if (GetResource(this, RES_HEALTH) <= 0)
+               W_PrepareExplosionByDamage(this, attacker, adaptor_think2use);
+}
+
+void M_Golem_Attack_Lightning_Touch(entity this, entity toucher)
+{
+       PROJECTILE_TOUCH(this, toucher);
+
+       this.use(this, NULL, toucher);
+}
+
+void M_Golem_Attack_Lightning_Think(entity this)
+{
+       this.nextthink = time;
+       if (time > this.cnt)
+       {
+               M_Golem_Attack_Lightning_Explode(this, NULL);
+               return;
+       }
+}
+
+void M_Golem_Attack_Lightning(entity this)
+{
+       entity gren;
+
+       monster_makevectors(this, this.enemy);
+
+       gren = new(grenade);
+       gren.owner = gren.realowner = this;
+       gren.bot_dodge = true;
+       gren.bot_dodgerating = (autocvar_g_monster_golem_attack_lightning_damage);
+       set_movetype(gren, MOVETYPE_BOUNCE);
+       PROJECTILE_MAKETRIGGER(gren);
+       gren.projectiledeathtype = DEATH_MONSTER_GOLEM_ZAP.m_id;
+       setorigin(gren, CENTER_OR_VIEWOFS(this));
+       setsize(gren, '-8 -8 -8', '8 8 8');
+       gren.scale = 2.5;
+
+       gren.cnt = time + 5;
+       gren.nextthink = time;
+       setthink(gren, M_Golem_Attack_Lightning_Think);
+       gren.use = M_Golem_Attack_Lightning_Explode_use;
+       settouch(gren, M_Golem_Attack_Lightning_Touch);
+
+       gren.takedamage = DAMAGE_YES;
+       SetResourceExplicit(gren, RES_HEALTH, 50);
+       gren.damageforcescale = 0;
+       gren.event_damage = M_Golem_Attack_Lightning_Damage;
+       gren.damagedbycontents = true;
+       IL_PUSH(g_damagedbycontents, gren);
+       gren.missile_flags = MIF_SPLASH | MIF_ARC;
+       W_SetupProjVelocity_Explicit(gren, v_forward, v_up, (autocvar_g_monster_golem_attack_lightning_speed), (autocvar_g_monster_golem_attack_lightning_speed_up), 0, 0, false);
+
+       gren.angles = vectoangles (gren.velocity);
+       gren.flags = FL_PROJECTILE;
+       IL_PUSH(g_projectiles, gren);
+       IL_PUSH(g_bot_dodge, gren);
+
+       CSQCProjectile(gren, true, PROJECTILE_GOLEM_LIGHTNING, true);
+}
+
+.int state;
+
+bool M_Golem_Attack(int attack_type, entity actor, entity targ, .entity weaponentity)
+{
+       switch(attack_type)
+       {
+               case MONSTER_ATTACK_MELEE:
+               {
+                       setanim(actor, ((random() >= 0.5) ? actor.anim_melee2 : actor.anim_melee3), false, true, true);
+                       int swing_cnt = bound(1, floor(random() * 4), 3);
+                       Monster_Delay(actor, swing_cnt, 0.5, M_Golem_Attack_Swing);
+                       actor.anim_finished = actor.attack_finished_single[0] = time + (0.5 * swing_cnt); // set this for the delay
+                       return true;
+               }
+               case MONSTER_ATTACK_RANGED:
+               {
+                       float randomness = random();
+
+                       if(time < actor.golem_lastattack || !IS_ONGROUND(actor))
+                               return false;
+
+                       if(randomness <= 0.5 && vdist(actor.enemy.origin - actor.origin, <=, autocvar_g_monster_golem_attack_smash_range))
+                       {
+                               setanim(actor, actor.anim_melee1, false, true, true);
+                               Monster_Delay(actor, 1, 1.1, M_Golem_Attack_Smash);
+                               if(actor.animstate_endtime > time)
+                                       actor.anim_finished = actor.animstate_endtime;
+                               else
+                                       actor.anim_finished = time + 1.2;
+                               actor.attack_finished_single[0] = actor.anim_finished + 0.2;
+                               actor.state = MONSTER_ATTACK_MELEE; // kinda a melee attack
+                               actor.golem_lastattack = time + 3 + random() * 1.5;
+                               return true;
+                       }
+                       else if(randomness <= 0.1 && vdist(actor.enemy.origin - actor.origin, >=, autocvar_g_monster_golem_attack_smash_range * 1.5)) // small chance, don't want this spammed
+                       {
+                               setanim(actor, actor.anim_melee2, true, true, false);
+                               actor.state = MONSTER_ATTACK_MELEE; // maybe we should rename this to something more general
+                               actor.attack_finished_single[0] = time + 1.1;
+                               actor.anim_finished = 1.1;
+                               actor.golem_lastattack = time + 3 + random() * 1.5;
+                               Monster_Delay(actor, 1, 0.6, M_Golem_Attack_Lightning);
+                               return true;
+                       }
+
+                       return false;
+               }
+       }
+
+       return false;
+}
+
+spawnfunc(monster_golem) { Monster_Spawn(this, true, MON_GOLEM); }
+// compatibility
+spawnfunc(monster_shambler) { spawnfunc_monster_golem(this); }
+#endif // SVQC
+
+#ifdef SVQC
+METHOD(Golem, mr_think, bool(Golem this, entity actor))
+{
+    TC(Golem, this);
+    return true;
+}
+
+METHOD(Golem, mr_pain, float(Golem this, entity actor, float damage_take, entity attacker, float deathtype))
+{
+    TC(Golem, this);
+    actor.pain_finished = time + 0.5;
+    setanim(actor, ((random() >= 0.5) ? actor.anim_pain2 : actor.anim_pain1), true, true, false);
+    return damage_take;
+}
+
+METHOD(Golem, mr_death, bool(Golem this, entity actor))
+{
+    TC(Golem, this);
+    setanim(actor, actor.anim_die1, false, true, true);
+    return true;
+}
+#endif
+#ifdef GAMEQC
+METHOD(Golem, mr_anim, bool(Golem this, entity actor))
+{
+    TC(Golem, this);
+    vector none = '0 0 0';
+    actor.anim_idle = animfixfps(actor, '0 1 1', none);
+    actor.anim_walk = animfixfps(actor, '1 1 1', none);
+    actor.anim_run = animfixfps(actor, '2 1 1', none);
+    //actor.anim_melee1 = animfixfps(actor, '3 1 5', none); // analyze models and set framerate
+    actor.anim_melee2 = animfixfps(actor, '4 1 5', none); // analyze models and set framerate
+    actor.anim_melee3 = animfixfps(actor, '5 1 5', none); // analyze models and set framerate
+    //actor.anim_melee4 = animfixfps(actor, '6 1 5', none); // analyze models and set framerate
+    actor.anim_melee1 = animfixfps(actor, '6 1 5', none); // analyze models and set framerate
+    actor.anim_pain1 = animfixfps(actor, '7 1 2', none); // 0.5 seconds
+    actor.anim_pain2 = animfixfps(actor, '8 1 2', none); // 0.5 seconds
+    //actor.anim_pain3 = animfixfps(actor, '9 1 2', none); // 0.5 seconds
+    //actor.anim_pain4 = animfixfps(actor, '10 1 2', none); // 0.5 seconds
+    //actor.anim_pain5 = animfixfps(actor, '11 1 2', none); // 0.5 seconds
+    actor.anim_spawn = animfixfps(actor, '12 1 5', none); // analyze models and set framerate
+    actor.anim_die1 = animfixfps(actor, '13 1 0.5', none); // 2 seconds
+    //actor.anim_dead = animfixfps(actor, '14 1 0.5', none); // 2 seconds
+    actor.anim_die2 = animfixfps(actor, '15 1 0.5', none); // 2 seconds
+    // dead2 16
+    //actor.anim_dieback = animfixfps(actor, '16 1 0.5', none); // 2 seconds
+    //actor.anim_deadback = animfixfps(actor, '17 1 0.5', none); // 2 seconds
+    //actor.anim_dead2 = animfixfps(actor, '18 1 0.5', none); // 2 seconds
+    //actor.anim_dead3 = animfixfps(actor, '19 1 0.5', none); // 2 seconds
+    //actor.anim_dead4 = animfixfps(actor, '20 1 0.5', none); // 2 seconds
+    //actor.anim_dead5 = animfixfps(actor, '21 1 0.5', none); // 2 seconds
+    //actor.anim_dead6 = animfixfps(actor, '22 1 0.5', none); // 2 seconds
+    return true;
+}
+#endif
+#ifdef SVQC
+.float animstate_endtime;
+METHOD(Golem, mr_setup, bool(Golem this, entity actor))
+{
+    TC(Golem, this);
+    if(!GetResource(actor, RES_HEALTH)) SetResourceExplicit(actor, RES_HEALTH, autocvar_g_monster_golem_health);
+    if(!actor.attack_range) actor.attack_range = 150;
+    if(!actor.speed) { actor.speed = (autocvar_g_monster_golem_speed_walk); }
+    if(!actor.speed2) { actor.speed2 = (autocvar_g_monster_golem_speed_run); }
+    if(!actor.stopspeed) { actor.stopspeed = (autocvar_g_monster_golem_speed_stop); }
+    if(!actor.damageforcescale) { actor.damageforcescale = (autocvar_g_monster_golem_damageforcescale); }
+
+    actor.monster_loot = ITEM_HealthMega;
+    actor.weapon = WEP_ELECTRO.m_id; // matches attacks better than WEP_VORTEX
+
+    setanim(actor, actor.anim_spawn, false, true, true);
+    actor.spawn_time = actor.animstate_endtime;
+    StatusEffects_apply(STATUSEFFECT_SpawnShield, actor, actor.spawn_time, 0);
+    actor.monster_attackfunc = M_Golem_Attack;
+
+    return true;
+}
+#endif
diff --git a/qcsrc/common/monsters/monster/golem.qh b/qcsrc/common/monsters/monster/golem.qh
new file mode 100644 (file)
index 0000000..8cebd86
--- /dev/null
@@ -0,0 +1,20 @@
+#pragma once
+
+#include "../all.qh"
+
+#ifdef GAMEQC
+MODEL(MON_GOLEM, M_Model("golem.dpm"));
+#endif
+
+CLASS(Golem, Monster)
+    ATTRIB(Golem, spawnflags, int, MON_FLAG_SUPERMONSTER | MON_FLAG_MELEE | MON_FLAG_RANGED);
+    ATTRIB(Golem, m_mins, vector, '-24 -24 -20');
+    ATTRIB(Golem, m_maxs, vector, '24 24 88');
+#ifdef GAMEQC
+    ATTRIB(Golem, m_model, Model, MDL_MON_GOLEM);
+#endif
+    ATTRIB(Golem, netname, string, "golem");
+    ATTRIB(Golem, monster_name, string, _("Golem"));
+ENDCLASS(Golem)
+
+REGISTER_MONSTER(GOLEM, NEW(Golem));
index 74a041b156c26784041019f6ee126c21658f920e..8cfa77e6535aa7dfe70925d12a58cb02b9bb4537 100644 (file)
@@ -1,6 +1,40 @@
 #include "mage.qh"
 
 #ifdef SVQC
+float autocvar_g_monster_mage_health;
+float autocvar_g_monster_mage_damageforcescale = 0.5;
+float autocvar_g_monster_mage_attack_spike_damage;
+float autocvar_g_monster_mage_attack_spike_radius;
+float autocvar_g_monster_mage_attack_spike_delay;
+float autocvar_g_monster_mage_attack_spike_accel;
+float autocvar_g_monster_mage_attack_spike_decel;
+float autocvar_g_monster_mage_attack_spike_chance = 0.45;
+float autocvar_g_monster_mage_attack_spike_turnrate;
+float autocvar_g_monster_mage_attack_spike_speed_max;
+float autocvar_g_monster_mage_attack_spike_smart;
+float autocvar_g_monster_mage_attack_spike_smart_trace_min;
+float autocvar_g_monster_mage_attack_spike_smart_trace_max;
+float autocvar_g_monster_mage_attack_spike_smart_mindist;
+float autocvar_g_monster_mage_attack_push_chance = 0.7;
+float autocvar_g_monster_mage_attack_push_damage;
+float autocvar_g_monster_mage_attack_push_radius;
+float autocvar_g_monster_mage_attack_push_delay;
+float autocvar_g_monster_mage_attack_push_force;
+float autocvar_g_monster_mage_attack_teleport_chance = 0.2;
+float autocvar_g_monster_mage_attack_teleport_delay = 2;
+float autocvar_g_monster_mage_attack_teleport_random = 0.4;
+float autocvar_g_monster_mage_attack_teleport_random_range = 1200;
+float autocvar_g_monster_mage_heal_self;
+float autocvar_g_monster_mage_heal_allies;
+float autocvar_g_monster_mage_heal_minhealth;
+float autocvar_g_monster_mage_heal_range;
+float autocvar_g_monster_mage_heal_delay;
+float autocvar_g_monster_mage_shield_time;
+float autocvar_g_monster_mage_shield_delay;
+float autocvar_g_monster_mage_shield_blockpercent;
+float autocvar_g_monster_mage_speed_stop;
+float autocvar_g_monster_mage_speed_run;
+float autocvar_g_monster_mage_speed_walk;
 
 SOUND(MageSpike_FIRE, W_Sound("electro_fire"));
 void M_Mage_Attack_Spike(entity this, vector dir);
@@ -40,44 +74,6 @@ ENDCLASS(OffhandMageTeleport)
 OffhandMageTeleport OFFHAND_MAGE_TELEPORT;
 STATIC_INIT(OFFHAND_MAGE_TELEPORT) { OFFHAND_MAGE_TELEPORT = NEW(OffhandMageTeleport); }
 
-float autocvar_g_monster_mage_health;
-float autocvar_g_monster_mage_damageforcescale = 0.5;
-float autocvar_g_monster_mage_attack_spike_damage;
-float autocvar_g_monster_mage_attack_spike_radius;
-float autocvar_g_monster_mage_attack_spike_delay;
-float autocvar_g_monster_mage_attack_spike_accel;
-float autocvar_g_monster_mage_attack_spike_decel;
-float autocvar_g_monster_mage_attack_spike_turnrate;
-float autocvar_g_monster_mage_attack_spike_speed_max;
-float autocvar_g_monster_mage_attack_spike_smart;
-float autocvar_g_monster_mage_attack_spike_smart_trace_min;
-float autocvar_g_monster_mage_attack_spike_smart_trace_max;
-float autocvar_g_monster_mage_attack_spike_smart_mindist;
-float autocvar_g_monster_mage_attack_push_damage;
-float autocvar_g_monster_mage_attack_push_radius;
-float autocvar_g_monster_mage_attack_push_delay;
-float autocvar_g_monster_mage_attack_push_force;
-float autocvar_g_monster_mage_heal_self;
-float autocvar_g_monster_mage_heal_allies;
-float autocvar_g_monster_mage_heal_minhealth;
-float autocvar_g_monster_mage_heal_range;
-float autocvar_g_monster_mage_heal_delay;
-float autocvar_g_monster_mage_shield_time;
-float autocvar_g_monster_mage_shield_delay;
-float autocvar_g_monster_mage_shield_blockpercent;
-float autocvar_g_monster_mage_speed_stop;
-float autocvar_g_monster_mage_speed_run;
-float autocvar_g_monster_mage_speed_walk;
-
-/*
-const float mage_anim_idle             = 0;
-const float mage_anim_walk             = 1;
-const float mage_anim_attack   = 2;
-const float mage_anim_pain             = 3;
-const float mage_anim_death            = 4;
-const float mage_anim_run              = 5;
-*/
-
 void M_Mage_Defend_Heal(entity this);
 void M_Mage_Defend_Shield(entity this);
 
@@ -145,7 +141,7 @@ void M_Mage_Attack_Spike_Touch(entity this, entity toucher)
 // copied from W_Seeker_Think
 void M_Mage_Attack_Spike_Think(entity this)
 {
-       if (time > this.ltime || (this.enemy && GetResource(this.enemy, RES_HEALTH) <= 0) || GetResource(this.owner, RES_HEALTH) <= 0) {
+       if (time > this.ltime || (this.enemy && GetResource(this.enemy, RES_HEALTH) <= 0) || !this.owner || GetResource(this.owner, RES_HEALTH) <= 0) {
                this.projectiledeathtype |= HITTYPE_SPLASH;
                M_Mage_Attack_Spike_Explode(this, NULL);
        }
@@ -224,7 +220,7 @@ void M_Mage_Attack_Spike(entity this, vector dir)
 
 void M_Mage_Defend_Heal(entity this)
 {
-       float washealed = false;
+       bool washealed = false;
 
        FOREACH_ENTITY_RADIUS(this.origin, autocvar_g_monster_mage_heal_range, M_Mage_Defend_Heal_Check(this, it),
        {
@@ -242,11 +238,11 @@ void M_Mage_Defend_Heal(entity this)
                                }
                                case 1:
                                {
-                                       if(GetResource(this, RES_CELLS)) GiveResourceWithLimit(it, RES_CELLS, 1, g_pickup_cells_max);
-                                       if(GetResource(this, RES_PLASMA)) GiveResourceWithLimit(it, RES_PLASMA, 1, g_pickup_plasma_max);
-                                       if(GetResource(this, RES_ROCKETS)) GiveResourceWithLimit(it, RES_ROCKETS, 1, g_pickup_rockets_max);
-                                       if(GetResource(this, RES_SHELLS)) GiveResourceWithLimit(it, RES_SHELLS, 2, g_pickup_shells_max);
-                                       if(GetResource(this, RES_BULLETS)) GiveResourceWithLimit(it, RES_BULLETS, 5, g_pickup_nails_max);
+                                       if(GetResource(it, RES_CELLS)) GiveResourceWithLimit(it, RES_CELLS, 1, g_pickup_cells_max);
+                                       if(GetResource(it, RES_PLASMA)) GiveResourceWithLimit(it, RES_PLASMA, 1, g_pickup_plasma_max);
+                                       if(GetResource(it, RES_ROCKETS)) GiveResourceWithLimit(it, RES_ROCKETS, 1, g_pickup_rockets_max);
+                                       if(GetResource(it, RES_SHELLS)) GiveResourceWithLimit(it, RES_SHELLS, 2, g_pickup_shells_max);
+                                       if(GetResource(it, RES_BULLETS)) GiveResourceWithLimit(it, RES_BULLETS, 5, g_pickup_nails_max);
                                        // TODO: fuel?
                                        fx = EFFECT_AMMO_REGEN;
                                        break;
@@ -278,8 +274,9 @@ void M_Mage_Defend_Heal(entity this)
 
        if(washealed)
        {
-               setanim(this, this.anim_shoot, true, true, true);
+               setanim(this, this.anim_melee, true, true, true);
                this.attack_finished_single[0] = time + (autocvar_g_monster_mage_heal_delay);
+               this.state = MONSTER_ATTACK_MELEE;
                this.anim_finished = time + 1.5;
        }
 }
@@ -291,22 +288,44 @@ void M_Mage_Attack_Push(entity this)
                                                NULL, NULL, (autocvar_g_monster_mage_attack_push_force), DEATH_MONSTER_MAGE.m_id, DMG_NOWEP, this.enemy);
        Send_Effect(EFFECT_TE_EXPLOSION, this.origin, '0 0 0', 1);
 
-       setanim(this, this.anim_shoot, true, true, true);
+       setanim(this, this.anim_duckjump, true, true, true);
        this.attack_finished_single[0] = time + (autocvar_g_monster_mage_attack_push_delay);
+       this.anim_finished = time + 1;
+       this.state = MONSTER_ATTACK_MELEE; // prevent moving while firing spike
 }
 
 void M_Mage_Attack_Teleport(entity this, entity targ)
 {
        if(!targ) return;
-       if(vdist(targ.origin - this.origin, >, 1500)) return;
+       if(vdist(targ.origin - this.origin, >, autocvar_g_monster_mage_attack_teleport_random_range)) return;
+
+       if(autocvar_g_monster_mage_attack_teleport_random && random() <= autocvar_g_monster_mage_attack_teleport_random)
+       {
+               vector oldpos = this.origin;
+               vector extrasize = '1 1 1' * autocvar_g_monster_mage_attack_teleport_random_range;
+               if(MoveToRandomLocationWithinBounds(this, this.absmin - extrasize, this.absmax + extrasize,
+                                                                                       DPCONTENTS_SOLID | DPCONTENTS_CORPSE | DPCONTENTS_PLAYERCLIP, DPCONTENTS_SLIME | DPCONTENTS_LAVA | DPCONTENTS_SKY | DPCONTENTS_BODY | DPCONTENTS_DONOTENTER, 
+                                                                                       Q3SURFACEFLAG_SKY, 10, 64, 256, true))
+               {
+                       vector a = vectoangles(targ.origin - this.origin);
+                       this.angles = '0 1 0' * a.y;
+                       this.fixangle = true;
+                       Send_Effect(EFFECT_SPAWN_NEUTRAL, oldpos, '0 0 0', 1);
+                       Send_Effect(EFFECT_SPAWN_NEUTRAL, this.origin, '0 0 0', 1);
+                       this.attack_finished_single[0] = time + autocvar_g_monster_mage_attack_teleport_delay;
+                       return;
+               }
+       }
+
+       if(!IS_ONGROUND(targ)) return;
 
        makevectors(targ.angles);
-       tracebox(targ.origin + ((v_forward * -1) * 200), this.mins, this.maxs, this.origin, MOVE_NOMONSTERS, this);
+       tracebox(CENTER_OR_VIEWOFS(targ), this.mins, this.maxs, CENTER_OR_VIEWOFS(targ) + ((v_forward * -1) * 200), MOVE_NOMONSTERS, this);
 
        if(trace_fraction < 1)
                return;
 
-       vector newpos = targ.origin + ((v_forward * -1) * 200);
+       vector newpos = trace_endpos;
 
        Send_Effect(EFFECT_SPAWN_NEUTRAL, this.origin, '0 0 0', 1);
        Send_Effect(EFFECT_SPAWN_NEUTRAL, newpos, '0 0 0', 1);
@@ -320,7 +339,7 @@ void M_Mage_Attack_Teleport(entity this, entity targ)
        this.fixangle = true;
        this.velocity *= 0.5;
 
-       this.attack_finished_single[0] = time + 0.2;
+       this.attack_finished_single[0] = time + autocvar_g_monster_mage_attack_teleport_delay;
 }
 
 void M_Mage_Defend_Shield(entity this)
@@ -329,7 +348,7 @@ void M_Mage_Defend_Shield(entity this)
        this.mage_shield_delay = time + (autocvar_g_monster_mage_shield_delay);
        SetResourceExplicit(this, RES_ARMOR, autocvar_g_monster_mage_shield_blockpercent);
        setanim(this, this.anim_shoot, true, true, true);
-       this.attack_finished_single[0] = time + 1;
+       this.attack_finished_single[0] = time + 1; // give just a short cooldown on attacking
        this.anim_finished = time + 1;
 }
 
@@ -339,7 +358,7 @@ bool M_Mage_Attack(int attack_type, entity actor, entity targ, .entity weaponent
        {
                case MONSTER_ATTACK_MELEE:
                {
-                       if(random() <= 0.7)
+                       if(random() <= autocvar_g_monster_mage_attack_push_chance)
                        {
                                Weapon wep = WEP_MAGE_SPIKE;
 
@@ -351,29 +370,25 @@ bool M_Mage_Attack(int attack_type, entity actor, entity targ, .entity weaponent
                }
                case MONSTER_ATTACK_RANGED:
                {
-                       if(!actor.mage_spike)
+                       if(random() <= autocvar_g_monster_mage_attack_teleport_chance)
                        {
-                               if(random() <= 0.4)
-                               {
-                                       OffhandWeapon off = OFFHAND_MAGE_TELEPORT;
-                                       off.offhand_think(off, actor, true);
-                                       return true;
-                               }
-                               else
-                               {
-                                       setanim(actor, actor.anim_shoot, true, true, true);
-                                       actor.attack_finished_single[0] = time + (autocvar_g_monster_mage_attack_spike_delay);
-                                       actor.anim_finished = time + 1;
-                                       Weapon wep = WEP_MAGE_SPIKE;
-                                       wep.wr_think(wep, actor, weaponentity, 1);
-                                       return true;
-                               }
+                               OffhandWeapon off = OFFHAND_MAGE_TELEPORT;
+                               actor.OffhandMageTeleport_key_pressed = 0;
+                               off.offhand_think(off, actor, 1);
+                               return true;
                        }
-
-                       if(actor.mage_spike)
+                       else if(!actor.mage_spike && random() <= autocvar_g_monster_mage_attack_spike_chance)
+                       {
+                               setanim(actor, actor.anim_shoot, true, true, true);
+                               actor.attack_finished_single[0] = time + (autocvar_g_monster_mage_attack_spike_delay);
+                               actor.anim_finished = time + 1;
+                               actor.state = MONSTER_ATTACK_MELEE; // prevent moving while firing spike
+                               Weapon wep = WEP_MAGE_SPIKE;
+                               wep.wr_think(wep, actor, weaponentity, 1);
                                return true;
-                       else
-                               return false;
+                       }
+
+                       return false;
                }
        }
 
@@ -434,7 +449,7 @@ METHOD(Mage, mr_pain, float(Mage this, entity actor, float damage_take, entity a
 METHOD(Mage, mr_death, bool(Mage this, entity actor))
 {
     TC(Mage, this);
-    setanim(actor, actor.anim_die1, false, true, true);
+    setanim(actor, ((random() > 0.5) ? actor.anim_die2 : actor.anim_die1), false, true, true);
     return true;
 }
 
@@ -444,12 +459,22 @@ METHOD(Mage, mr_anim, bool(Mage this, entity actor))
 {
     TC(Mage, this);
     vector none = '0 0 0';
-    actor.anim_die1 = animfixfps(actor, '4 1 0.5', none); // 2 seconds
-    actor.anim_walk = animfixfps(actor, '1 1 1', none);
     actor.anim_idle = animfixfps(actor, '0 1 1', none);
-    actor.anim_pain1 = animfixfps(actor, '3 1 2', none); // 0.5 seconds
+    actor.anim_walk = animfixfps(actor, '1 1 1', none);
+    actor.anim_run = animfixfps(actor, '1 1 1', none);
     actor.anim_shoot = animfixfps(actor, '2 1 5', none); // analyze models and set framerate
-    actor.anim_run = animfixfps(actor, '5 1 1', none);
+    actor.anim_duckjump = animfixfps(actor, '4 1 5', none); // analyze models and set framerate
+    actor.anim_melee = animfixfps(actor, '5 1 5', none); // analyze models and set framerate
+    //actor.anim_fire1 = animfixfps(actor, '3 1 5', none); // analyze models and set framerate
+    //actor.anim_fire2 = animfixfps(actor, '4 1 5', none); // analyze models and set framerate
+    //actor.anim_fire3 = animfixfps(actor, '5 1 5', none); // analyze models and set framerate
+    actor.anim_pain1 = animfixfps(actor, '6 1 2', none); // 0.5 seconds
+    actor.anim_pain2 = animfixfps(actor, '7 1 2', none); // 0.5 seconds
+    //actor.anim_pain3 = animfixfps(actor, '8 1 2', none); // 0.5 seconds
+    actor.anim_die1 = animfixfps(actor, '9 1 0.5', none); // 2 seconds
+    actor.anim_die2 = animfixfps(actor, '10 1 0.5', none); // 2 seconds
+    //actor.anim_dead1 = animfixfps(actor, '11 1 0.5', none); // 2 seconds
+    //actor.anim_dead2 = animfixfps(actor, '12 1 0.5', none); // 2 seconds
     return true;
 }
 #endif
index 23de31062cae854df3882b62ee0afdd1c69b04a1..8331c4857ac9ce27ea02b8082a1dbb325557cd47 100644 (file)
@@ -3,13 +3,13 @@
 #include "../all.qh"
 
 #ifdef GAMEQC
-MODEL(MON_MAGE, M_Model("mage.dpm"));
+MODEL(MON_MAGE, M_Model("nanomage.dpm"));
 #endif
 
 CLASS(Mage, Monster)
     ATTRIB(Mage, spawnflags, int, MON_FLAG_MELEE | MON_FLAG_RANGED);
-    ATTRIB(Mage, m_mins, vector, '-36 -36 -24');
-    ATTRIB(Mage, m_maxs, vector, '36 36 50');
+    ATTRIB(Mage, m_mins, vector, '-16 -16 -24');
+    ATTRIB(Mage, m_maxs, vector, '16 16 55');
 #ifdef GAMEQC
     ATTRIB(Mage, m_model, Model, MDL_MON_MAGE);
 #endif
diff --git a/qcsrc/common/monsters/monster/shambler.qc b/qcsrc/common/monsters/monster/shambler.qc
deleted file mode 100644 (file)
index 789b7af..0000000
+++ /dev/null
@@ -1,264 +0,0 @@
-#include "shambler.qh"
-
-#ifdef SVQC
-float autocvar_g_monster_shambler_health;
-float autocvar_g_monster_shambler_damageforcescale = 0.1;
-float autocvar_g_monster_shambler_attack_smash_damage;
-float autocvar_g_monster_shambler_attack_smash_range;
-float autocvar_g_monster_shambler_attack_claw_damage;
-float autocvar_g_monster_shambler_attack_lightning_damage;
-float autocvar_g_monster_shambler_attack_lightning_damage_zap = 15;
-float autocvar_g_monster_shambler_attack_lightning_force;
-float autocvar_g_monster_shambler_attack_lightning_radius;
-float autocvar_g_monster_shambler_attack_lightning_radius_zap;
-float autocvar_g_monster_shambler_attack_lightning_speed;
-float autocvar_g_monster_shambler_attack_lightning_speed_up;
-float autocvar_g_monster_shambler_speed_stop;
-float autocvar_g_monster_shambler_speed_run;
-float autocvar_g_monster_shambler_speed_walk;
-
-/*
-const float shambler_anim_stand                = 0;
-const float shambler_anim_walk         = 1;
-const float shambler_anim_run          = 2;
-const float shambler_anim_smash                = 3;
-const float shambler_anim_swingr       = 4;
-const float shambler_anim_swingl       = 5;
-const float shambler_anim_magic                = 6;
-const float shambler_anim_pain         = 7;
-const float shambler_anim_death                = 8;
-*/
-
-.float shambler_lastattack; // delay attacks separately
-
-void M_Shambler_Attack_Smash(entity this)
-{
-       makevectors(this.angles);
-       Send_Effect(EFFECT_EXPLOSION_MEDIUM, (this.origin + (v_forward * 150)) - ('0 0 1' * this.maxs.z), '0 0 0', 1);
-       sound(this, CH_SHOTS, SND_ROCKET_IMPACT, VOL_BASE, ATTEN_NORM);
-
-       // RadiusDamage does NOT support custom starting location, which means we must use this hack...
-
-       tracebox(this.origin + v_forward * 50, this.mins * 0.5, this.maxs * 0.5, this.origin + v_forward * autocvar_g_monster_shambler_attack_smash_range, MOVE_NORMAL, this);
-
-       if(trace_ent.takedamage)
-               Damage(trace_ent, this, this, (autocvar_g_monster_shambler_attack_smash_damage) * MONSTER_SKILLMOD(this), DEATH_MONSTER_SHAMBLER_SMASH.m_id, DMG_NOWEP, trace_ent.origin, normalize(trace_ent.origin - this.origin));
-}
-
-void M_Shambler_Attack_Swing(entity this)
-{
-       Monster_Attack_Melee(this, this.enemy, (autocvar_g_monster_shambler_attack_claw_damage), ((random() >= 0.5) ? this.anim_melee2 : this.anim_melee3), this.attack_range, 0.8, DEATH_MONSTER_SHAMBLER_CLAW.m_id, true);
-}
-
-#include <common/effects/qc/_mod.qh>
-
-void M_Shambler_Attack_Lightning_Explode(entity this, entity directhitentity)
-{
-       sound(this, CH_SHOTS, SND_ELECTRO_IMPACT, VOL_BASE, ATTEN_NORM);
-       Send_Effect(EFFECT_ELECTRO_IMPACT, this.origin, '0 0 0', 1);
-
-       this.event_damage = func_null;
-       this.takedamage = DAMAGE_NO;
-       set_movetype(this, MOVETYPE_NONE);
-       this.velocity = '0 0 0';
-
-       if(this.move_movetype == MOVETYPE_NONE)
-               this.velocity = this.oldvelocity;
-
-       RadiusDamage (this, this.realowner, (autocvar_g_monster_shambler_attack_lightning_damage), (autocvar_g_monster_shambler_attack_lightning_damage), (autocvar_g_monster_shambler_attack_lightning_radius),
-                                       NULL, NULL, (autocvar_g_monster_shambler_attack_lightning_force), this.projectiledeathtype, DMG_NOWEP, directhitentity);
-
-       FOREACH_ENTITY_RADIUS(this.origin, autocvar_g_monster_shambler_attack_lightning_radius_zap, it != this.realowner && it.takedamage,
-       {
-               te_csqc_lightningarc(this.origin, it.origin);
-               Damage(it, this, this.realowner, (autocvar_g_monster_shambler_attack_lightning_damage_zap) * MONSTER_SKILLMOD(this), DEATH_MONSTER_SHAMBLER_ZAP.m_id, DMG_NOWEP, it.origin, '0 0 0');
-       });
-
-       setthink(this, SUB_Remove);
-       this.nextthink = time + 0.2;
-}
-
-void M_Shambler_Attack_Lightning_Explode_use(entity this, entity actor, entity trigger)
-{
-       M_Shambler_Attack_Lightning_Explode(this, trigger);
-}
-
-void M_Shambler_Attack_Lightning_Damage(entity this, entity inflictor, entity attacker, float damage, int deathtype, .entity weaponentity, vector hitloc, vector force)
-{
-       if (GetResource(this, RES_HEALTH) <= 0)
-               return;
-
-       if (!W_CheckProjectileDamage(inflictor.realowner, this.realowner, deathtype, -1)) // no exceptions
-               return; // g_projectiles_damage says to halt
-
-       TakeResource(this, RES_HEALTH, damage);
-
-       if (GetResource(this, RES_HEALTH) <= 0)
-               W_PrepareExplosionByDamage(this, attacker, adaptor_think2use);
-}
-
-void M_Shambler_Attack_Lightning_Touch(entity this, entity toucher)
-{
-       PROJECTILE_TOUCH(this, toucher);
-
-       this.use(this, NULL, toucher);
-}
-
-void M_Shambler_Attack_Lightning_Think(entity this)
-{
-       this.nextthink = time;
-       if (time > this.cnt)
-       {
-               M_Shambler_Attack_Lightning_Explode(this, NULL);
-               return;
-       }
-}
-
-void M_Shambler_Attack_Lightning(entity this)
-{
-       entity gren = new(grenade);
-       gren.owner = gren.realowner = this;
-       gren.bot_dodge = true;
-       gren.bot_dodgerating = (autocvar_g_monster_shambler_attack_lightning_damage);
-       set_movetype(gren, MOVETYPE_BOUNCE);
-       PROJECTILE_MAKETRIGGER(gren);
-       gren.projectiledeathtype = DEATH_MONSTER_SHAMBLER_ZAP.m_id;
-       setorigin(gren, CENTER_OR_VIEWOFS(this));
-       setsize(gren, '-8 -8 -8', '8 8 8');
-       gren.scale = 2.5;
-
-       gren.cnt = time + 5;
-       gren.nextthink = time;
-       setthink(gren, M_Shambler_Attack_Lightning_Think);
-       gren.use = M_Shambler_Attack_Lightning_Explode_use;
-       settouch(gren, M_Shambler_Attack_Lightning_Touch);
-
-       gren.takedamage = DAMAGE_YES;
-       SetResourceExplicit(gren, RES_HEALTH, 50);
-       gren.damageforcescale = 0;
-       gren.event_damage = M_Shambler_Attack_Lightning_Damage;
-       gren.damagedbycontents = true;
-       IL_PUSH(g_damagedbycontents, gren);
-       gren.missile_flags = MIF_SPLASH | MIF_ARC;
-       W_SetupProjVelocity_Explicit(gren, v_forward, v_up, (autocvar_g_monster_shambler_attack_lightning_speed), (autocvar_g_monster_shambler_attack_lightning_speed_up), 0, 0, false);
-
-       gren.angles = vectoangles (gren.velocity);
-       gren.flags = FL_PROJECTILE;
-       IL_PUSH(g_projectiles, gren);
-       IL_PUSH(g_bot_dodge, gren);
-
-       CSQCProjectile(gren, true, PROJECTILE_SHAMBLER_LIGHTNING, true);
-}
-
-.int state;
-
-bool M_Shambler_Attack(int attack_type, entity actor, entity targ, .entity weaponentity)
-{
-       switch(attack_type)
-       {
-               case MONSTER_ATTACK_MELEE:
-               {
-                       int swing_cnt = bound(1, floor(random() * 4), 3);
-                       Monster_Delay(actor, swing_cnt, 0.5, M_Shambler_Attack_Swing);
-                       actor.anim_finished = actor.attack_finished_single[0] = time + (0.5 * swing_cnt); // set this for the delay
-                       return true;
-               }
-               case MONSTER_ATTACK_RANGED:
-               {
-                       float randomness = random();
-
-                       if(time >= actor.shambler_lastattack) // shambler doesn't attack much
-                       if(IS_ONGROUND(actor))
-                       if(randomness <= 0.5 && vdist(actor.enemy.origin - actor.origin, <=, autocvar_g_monster_shambler_attack_smash_range))
-                       {
-                               setanim(actor, actor.anim_melee2, true, true, false);
-                               Monster_Delay(actor, 1, 0.7, M_Shambler_Attack_Smash);
-                               actor.attack_finished_single[0] = time + 1.1;
-                               actor.anim_finished = time + 1.1;
-                               actor.state = MONSTER_ATTACK_MELEE; // kinda a melee attack
-                               actor.shambler_lastattack = time + 3 + random() * 1.5;
-                               return true;
-                       }
-                       else if(randomness <= 0.1 && vdist(actor.enemy.origin - actor.origin, >=, autocvar_g_monster_shambler_attack_smash_range * 1.5)) // small chance, don't want this spammed
-                       {
-                               setanim(actor, actor.anim_shoot, true, true, false);
-                               actor.state = MONSTER_ATTACK_MELEE; // maybe we should rename this to something more general
-                               actor.attack_finished_single[0] = time + 1.1;
-                               actor.anim_finished = 1.1;
-                               actor.shambler_lastattack = time + 3 + random() * 1.5;
-                               Monster_Delay(actor, 1, 0.6, M_Shambler_Attack_Lightning);
-                               return true;
-                       }
-
-                       return false;
-               }
-       }
-
-       return false;
-}
-
-spawnfunc(monster_shambler) { Monster_Spawn(this, true, MON_SHAMBLER); }
-#endif // SVQC
-
-#ifdef SVQC
-METHOD(Shambler, mr_think, bool(Shambler this, entity actor))
-{
-    TC(Shambler, this);
-    return true;
-}
-
-METHOD(Shambler, mr_pain, float(Shambler this, entity actor, float damage_take, entity attacker, float deathtype))
-{
-    TC(Shambler, this);
-    actor.pain_finished = time + 0.5;
-    setanim(actor, actor.anim_pain1, true, true, false);
-    return damage_take;
-}
-
-METHOD(Shambler, mr_death, bool(Shambler this, entity actor))
-{
-    TC(Shambler, this);
-    setanim(actor, actor.anim_die1, false, true, true);
-    return true;
-}
-#endif
-#ifdef GAMEQC
-METHOD(Shambler, mr_anim, bool(Shambler this, entity actor))
-{
-    TC(Shambler, this);
-    vector none = '0 0 0';
-    actor.anim_die1 = animfixfps(actor, '8 1 0.5', none); // 2 seconds
-    actor.anim_walk = animfixfps(actor, '1 1 1', none);
-    actor.anim_idle = animfixfps(actor, '0 1 1', none);
-    actor.anim_pain1 = animfixfps(actor, '7 1 2', none); // 0.5 seconds
-    actor.anim_melee1 = animfixfps(actor, '3 1 5', none); // analyze models and set framerate
-    actor.anim_melee2 = animfixfps(actor, '4 1 5', none); // analyze models and set framerate
-    actor.anim_melee3 = animfixfps(actor, '5 1 5', none); // analyze models and set framerate
-    actor.anim_shoot = animfixfps(actor, '6 1 5', none); // analyze models and set framerate
-    actor.anim_run = animfixfps(actor, '2 1 1', none);
-    return true;
-}
-#endif
-#ifdef SVQC
-.float animstate_endtime;
-METHOD(Shambler, mr_setup, bool(Shambler this, entity actor))
-{
-    TC(Shambler, this);
-    if(!GetResource(this, RES_HEALTH)) SetResourceExplicit(actor, RES_HEALTH, autocvar_g_monster_shambler_health);
-    if(!actor.attack_range) actor.attack_range = 150;
-    if(!actor.speed) { actor.speed = (autocvar_g_monster_shambler_speed_walk); }
-    if(!actor.speed2) { actor.speed2 = (autocvar_g_monster_shambler_speed_run); }
-    if(!actor.stopspeed) { actor.stopspeed = (autocvar_g_monster_shambler_speed_stop); }
-    if(!actor.damageforcescale) { actor.damageforcescale = (autocvar_g_monster_shambler_damageforcescale); }
-
-    actor.monster_loot = ITEM_HealthMega;
-    actor.weapon = WEP_ELECTRO.m_id; // matches attacks better than WEP_VORTEX
-
-    setanim(actor, actor.anim_shoot, false, true, true);
-    actor.spawn_time = actor.animstate_endtime;
-    StatusEffects_apply(STATUSEFFECT_SpawnShield, actor, actor.spawn_time, 0);
-    actor.monster_attackfunc = M_Shambler_Attack;
-
-    return true;
-}
-#endif
diff --git a/qcsrc/common/monsters/monster/shambler.qh b/qcsrc/common/monsters/monster/shambler.qh
deleted file mode 100644 (file)
index e6a374d..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#pragma once
-
-#include "../all.qh"
-
-#ifdef GAMEQC
-MODEL(MON_SHAMBLER, M_Model("shambler.mdl"));
-#endif
-
-CLASS(Shambler, Monster)
-    ATTRIB(Shambler, spawnflags, int, MONSTER_SIZE_BROKEN | MON_FLAG_SUPERMONSTER | MON_FLAG_MELEE | MON_FLAG_RANGED);
-    ATTRIB(Shambler, m_mins, vector, '-41 -41 -31');
-    ATTRIB(Shambler, m_maxs, vector, '41 41 65');
-#ifdef GAMEQC
-    ATTRIB(Shambler, m_model, Model, MDL_MON_SHAMBLER);
-#endif
-    ATTRIB(Shambler, netname, string, "shambler");
-    ATTRIB(Shambler, monster_name, string, _("Golem"));
-ENDCLASS(Shambler)
-
-REGISTER_MONSTER(SHAMBLER, NEW(Shambler));
index 3f3e65d4a3dee63da2cb3d91bdf08871a7146552..0d0936eabb530a298930a56e830514f0a41e66b7 100644 (file)
@@ -5,16 +5,20 @@
 #endif
 
 #ifdef SVQC
-
-.float spider_web_delay;
-
+float autocvar_g_monster_spider_health;
+float autocvar_g_monster_spider_damageforcescale = 0.6;
+float autocvar_g_monster_spider_attack_bite_damage;
+float autocvar_g_monster_spider_attack_bite_delay;
 float autocvar_g_monster_spider_attack_web_damagetime;
 float autocvar_g_monster_spider_attack_web_speed;
 float autocvar_g_monster_spider_attack_web_speed_up;
 float autocvar_g_monster_spider_attack_web_delay;
+float autocvar_g_monster_spider_attack_web_range = 800;
+float autocvar_g_monster_spider_speed_stop;
+float autocvar_g_monster_spider_speed_run;
+float autocvar_g_monster_spider_speed_walk;
 
-float autocvar_g_monster_spider_attack_bite_damage;
-float autocvar_g_monster_spider_attack_bite_delay;
+.float spider_web_delay;
 
 void M_Spider_Attack_Web(entity this);
 
@@ -45,12 +49,15 @@ METHOD(SpiderAttack, wr_think, void(SpiderAttack thiswep, entity actor, .entity
     TC(SpiderAttack, thiswep);
     bool isPlayer = IS_PLAYER(actor);
     if (fire & 1)
-    if ((!isPlayer && time >= actor.spider_web_delay) || weapon_prepareattack(thiswep, actor, weaponentity, false, autocvar_g_monster_spider_attack_web_delay)) {
+    if ((!isPlayer && time >= actor.spider_web_delay) || (isPlayer && weapon_prepareattack(thiswep, actor, weaponentity, false, autocvar_g_monster_spider_attack_web_delay))) {
                if (!isPlayer) {
-                       actor.spider_web_delay = time + 3;
+                       actor.spider_web_delay = time + autocvar_g_monster_spider_attack_web_delay;
                        setanim(actor, actor.anim_shoot, true, true, true);
-                       actor.attack_finished_single[0] = time + (autocvar_g_monster_spider_attack_web_delay);
-                       actor.anim_finished = time + 1;
+                       if(actor.animstate_endtime > time)
+                               actor.anim_finished = actor.animstate_endtime;
+                       else
+                               actor.anim_finished = time + 1;
+                       actor.attack_finished_single[0] = actor.anim_finished + 0.2;
                }
         if (isPlayer) actor.enemy = Monster_FindTarget(actor);
         monster_makevectors(actor, actor.enemy);
@@ -71,19 +78,6 @@ METHOD(SpiderAttack, wr_think, void(SpiderAttack thiswep, entity actor, .entity
     }
 }
 
-float autocvar_g_monster_spider_health;
-float autocvar_g_monster_spider_damageforcescale = 0.6;
-float autocvar_g_monster_spider_speed_stop;
-float autocvar_g_monster_spider_speed_run;
-float autocvar_g_monster_spider_speed_walk;
-
-/*
-const float spider_anim_idle           = 0;
-const float spider_anim_walk           = 1;
-const float spider_anim_attack         = 2;
-const float spider_anim_attack2                = 3;
-*/
-
 void M_Spider_Attack_Web_Explode(entity this)
 {
        if(this)
@@ -162,8 +156,11 @@ bool M_Spider_Attack(int attack_type, entity actor, entity targ, .entity weapone
                }
                case MONSTER_ATTACK_RANGED:
                {
-                       wep.wr_think(wep, actor, weaponentity, 1);
-                       return true;
+                       if(vdist(actor.enemy.origin - actor.origin, <=, autocvar_g_monster_spider_attack_web_range))
+                       {
+                               wep.wr_think(wep, actor, weaponentity, 1);
+                               return true;
+                       }
                }
        }
 
@@ -183,14 +180,15 @@ METHOD(Spider, mr_think, bool(Spider this, entity actor))
 METHOD(Spider, mr_pain, float(Spider this, entity actor, float damage_take, entity attacker, float deathtype))
 {
     TC(Spider, this);
+    setanim(actor, ((random() > 0.5) ? actor.anim_pain2 : actor.anim_pain1), true, true, false);
+    actor.pain_finished = actor.animstate_endtime;
     return damage_take;
 }
 
 METHOD(Spider, mr_death, bool(Spider this, entity actor))
 {
     TC(Spider, this);
-    setanim(actor, actor.anim_melee, false, true, true);
-    actor.angles_x = 180;
+    setanim(actor, ((random() > 0.5) ? actor.anim_die2 : actor.anim_die1), false, true, true);
     return true;
 }
 #endif
@@ -199,11 +197,25 @@ METHOD(Spider, mr_anim, bool(Spider this, entity actor))
 {
     TC(Spider, this);
     vector none = '0 0 0';
-    actor.anim_walk = animfixfps(actor, '1 1 1', none);
-    actor.anim_idle = animfixfps(actor, '0 1 1', none);
-    actor.anim_melee = animfixfps(actor, '2 1 5', none); // analyze models and set framerate
-    actor.anim_shoot = animfixfps(actor, '3 1 5', none); // analyze models and set framerate
-    actor.anim_run = animfixfps(actor, '1 1 1', none);
+    actor.anim_melee = animfixfps(actor, '0 1 5', none); // analyze models and set framerate
+    actor.anim_die1 = animfixfps(actor, '1 1 1', none);
+    actor.anim_die2 = animfixfps(actor, '2 1 1', none);
+    actor.anim_shoot = animfixfps(actor, '3 1 1', none);
+    //actor.anim_fire2 = animfixfps(actor, '4 1 1', none);
+    actor.anim_idle = animfixfps(actor, '5 1 1', none);
+    //actor.anim_sight = animfixfps(actor, '6 1 1', none);
+    actor.anim_pain1 = animfixfps(actor, '7 1 1', none);
+    actor.anim_pain2 = animfixfps(actor, '8 1 1', none);
+    //actor.anim_pain3 = animfixfps(actor, '9 1 1', none);
+    actor.anim_walk = animfixfps(actor, '10 1 1', none);
+    actor.anim_run = animfixfps(actor, '10 1 1', none); // temp?
+    //actor.anim_forwardright = animfixfps(actor, '11 1 1', none);
+    //actor.anim_walkright = animfixfps(actor, '12 1 1', none);
+    //actor.anim_walkbackright = animfixfps(actor, '13 1 1', none);
+    //actor.anim_walkback = animfixfps(actor, '14 1 1', none);
+    //actor.anim_walkbackleft = animfixfps(actor, '15 1 1', none);
+    //actor.anim_walkleft = animfixfps(actor, '16 1 1', none);
+    //actor.anim_forwardleft = animfixfps(actor, '17 1 1', none);
     return true;
 }
 #endif
index 943833f9909777894290d181bc2b1b39cdae72e5..5db6a0b8e408f9f7868a068447c8df47627fa55f 100644 (file)
@@ -8,8 +8,8 @@ MODEL(MON_SPIDER, M_Model("spider.dpm"));
 
 CLASS(Spider, Monster)
     ATTRIB(Spider, spawnflags, int, MON_FLAG_MELEE | MON_FLAG_RANGED | MON_FLAG_RIDE);
-    ATTRIB(Spider, m_mins, vector, '-18 -18 -25');
-    ATTRIB(Spider, m_maxs, vector, '18 18 30');
+    ATTRIB(Spider, m_mins, vector, '-30 -30 -25');
+    ATTRIB(Spider, m_maxs, vector, '30 30 30');
 #ifdef GAMEQC
     ATTRIB(Spider, m_model, Model, MDL_MON_SPIDER);
 #endif
index 6b1965b542cdd4aad816a88a206f92f3f4be75a9..3b48c67e7d96f8eb41a006e049fd09b2f4b63164 100644 (file)
@@ -1,13 +1,17 @@
 #include "wyvern.qh"
 
 #ifdef SVQC
-
+float autocvar_g_monster_wyvern_health;
+float autocvar_g_monster_wyvern_damageforcescale = 0.6;
 float autocvar_g_monster_wyvern_attack_fireball_damage;
 float autocvar_g_monster_wyvern_attack_fireball_edgedamage;
 float autocvar_g_monster_wyvern_attack_fireball_damagetime;
 float autocvar_g_monster_wyvern_attack_fireball_force;
 float autocvar_g_monster_wyvern_attack_fireball_radius;
 float autocvar_g_monster_wyvern_attack_fireball_speed;
+float autocvar_g_monster_wyvern_speed_stop;
+float autocvar_g_monster_wyvern_speed_run;
+float autocvar_g_monster_wyvern_speed_walk;
 
 void M_Wyvern_Attack_Fireball_Explode(entity this);
 void M_Wyvern_Attack_Fireball_Touch(entity this, entity toucher);
@@ -51,20 +55,6 @@ METHOD(WyvernAttack, wr_checkammo1, bool(WyvernAttack this, entity actor, .entit
        return true;
 }
 
-float autocvar_g_monster_wyvern_health;
-float autocvar_g_monster_wyvern_damageforcescale = 0.6;
-float autocvar_g_monster_wyvern_speed_stop;
-float autocvar_g_monster_wyvern_speed_run;
-float autocvar_g_monster_wyvern_speed_walk;
-
-/*
-const float wyvern_anim_hover  = 0;
-const float wyvern_anim_fly            = 1;
-const float wyvern_anim_magic  = 2;
-const float wyvern_anim_pain   = 3;
-const float wyvern_anim_death  = 4;
-*/
-
 void M_Wyvern_Attack_Fireball_Explode(entity this)
 {
        Send_Effect(EFFECT_FIREBALL_EXPLODE, this.origin, '0 0 0', 1);
@@ -72,9 +62,9 @@ void M_Wyvern_Attack_Fireball_Explode(entity this)
        entity own = this.realowner;
 
        RadiusDamage(this, own, autocvar_g_monster_wyvern_attack_fireball_damage, autocvar_g_monster_wyvern_attack_fireball_edgedamage, autocvar_g_monster_wyvern_attack_fireball_force,
-                                               NULL, NULL, autocvar_g_monster_wyvern_attack_fireball_radius, this.projectiledeathtype, DMG_NOWEP, NULL);
+                                               own, NULL, autocvar_g_monster_wyvern_attack_fireball_radius, this.projectiledeathtype, DMG_NOWEP, NULL);
 
-       FOREACH_ENTITY_RADIUS(this.origin, autocvar_g_monster_wyvern_attack_fireball_radius, it.takedamage == DAMAGE_AIM,
+       FOREACH_ENTITY_RADIUS(this.origin, autocvar_g_monster_wyvern_attack_fireball_radius, it.takedamage == DAMAGE_AIM && it != own,
        {
                Fire_AddDamage(it, own, 5 * MONSTER_SKILLMOD(own), autocvar_g_monster_wyvern_attack_fireball_damagetime, this.projectiledeathtype);
        });
@@ -89,6 +79,15 @@ void M_Wyvern_Attack_Fireball_Touch(entity this, entity toucher)
        M_Wyvern_Attack_Fireball_Explode(this);
 }
 
+void M_Wyvern_Attack_Fireball(entity this)
+{
+       w_shotdir = normalize((this.enemy.origin + '0 0 10') - this.origin);
+       Weapon wep = WEP_WYVERN_ATTACK;
+       // TODO
+       .entity weaponentity = weaponentities[0];
+       wep.wr_think(wep, this, weaponentity, 1);
+}
+
 bool M_Wyvern_Attack(int attack_type, entity actor, entity targ, .entity weaponentity)
 {
        switch(attack_type)
@@ -96,9 +95,14 @@ bool M_Wyvern_Attack(int attack_type, entity actor, entity targ, .entity weapone
                case MONSTER_ATTACK_MELEE:
                case MONSTER_ATTACK_RANGED:
                {
-                       w_shotdir = normalize((actor.enemy.origin + '0 0 10') - actor.origin);
-                       Weapon wep = WEP_WYVERN_ATTACK;
-                       wep.wr_think(wep, actor, weaponentity, 1);
+                       Monster_Delay(actor, 0, 1, M_Wyvern_Attack_Fireball);
+                       //actor.anim_finished = time + 1.2;
+                       setanim(actor, actor.anim_shoot, false, true, true);
+                       if(actor.animstate_endtime > time)
+                               actor.anim_finished = actor.animstate_endtime;
+                       else
+                               actor.anim_finished = time + 1.2;
+                       actor.attack_finished_single[0] = actor.anim_finished + 0.2;
                        return true;
                }
        }
@@ -116,6 +120,14 @@ METHOD(Wyvern, mr_think, bool(Wyvern this, entity actor))
     return true;
 }
 
+METHOD(Wyvern, mr_deadthink, bool(Wyvern this, entity actor))
+{
+    TC(Wyvern, this);
+    if(IS_ONGROUND(actor))
+       setanim(actor, actor.anim_die2, true, false, false);
+    return true;
+}
+
 METHOD(Wyvern, mr_pain, float(Wyvern this, entity actor, float damage_take, entity attacker, float deathtype))
 {
     TC(Wyvern, this);
@@ -139,12 +151,15 @@ METHOD(Wyvern, mr_anim, bool(Wyvern this, entity actor))
 {
     TC(Wyvern, this);
     vector none = '0 0 0';
-    actor.anim_die1 = animfixfps(actor, '4 1 0.5', none); // 2 seconds
-    actor.anim_walk = animfixfps(actor, '1 1 1', none);
     actor.anim_idle = animfixfps(actor, '0 1 1', none);
+    actor.anim_walk = animfixfps(actor, '1 1 1', none);
+    actor.anim_run = animfixfps(actor, '2 1 1', none);
     actor.anim_pain1 = animfixfps(actor, '3 1 2', none); // 0.5 seconds
-    actor.anim_shoot = animfixfps(actor, '2 1 5', none); // analyze models and set framerate
-    actor.anim_run = animfixfps(actor, '1 1 1', none);
+    actor.anim_pain2 = animfixfps(actor, '4 1 2', none); // 0.5 seconds
+    actor.anim_melee = animfixfps(actor, '5 1 5', none); // analyze models and set framerate
+    actor.anim_shoot = animfixfps(actor, '6 1 5', none); // analyze models and set framerate
+    actor.anim_die1 = animfixfps(actor, '7 1 0.5', none); // 2 seconds
+    actor.anim_die2 = animfixfps(actor, '8 1 0.5', none); // 2 seconds
     return true;
 }
 #endif
index e54c9a797332a96aa2dbe000f6288dbe0f80ee4f..ed89b9785daa98f3802b060a7b880186326a9fb1 100644 (file)
@@ -3,13 +3,13 @@
 #include "../all.qh"
 
 #ifdef GAMEQC
-MODEL(MON_WYVERN, M_Model("wizard.mdl"));
+MODEL(MON_WYVERN, M_Model("wyvern.dpm"));
 #endif
 
 CLASS(Wyvern, Monster)
-    ATTRIB(Wyvern, spawnflags, int, MONSTER_TYPE_FLY | MONSTER_SIZE_BROKEN | MON_FLAG_RANGED | MON_FLAG_RIDE);
-    ATTRIB(Wyvern, m_mins, vector, '-20 -20 -58');
-    ATTRIB(Wyvern, m_maxs, vector, '20 20 20');
+    ATTRIB(Wyvern, spawnflags, int, MONSTER_TYPE_FLY | MON_FLAG_RANGED | MON_FLAG_RIDE);
+    ATTRIB(Wyvern, m_mins, vector, '-30 -30 -48');
+    ATTRIB(Wyvern, m_maxs, vector, '30 30 30');
 #ifdef GAMEQC
     ATTRIB(Wyvern, m_model, Model, MDL_MON_WYVERN);
 #endif
index f99474e9ec2ac293e75b83ac129fd0f6426e3783..4cb4427706462f3a981e38781d07bac1ff51ca57 100644 (file)
@@ -13,40 +13,6 @@ float autocvar_g_monster_zombie_speed_stop;
 float autocvar_g_monster_zombie_speed_run;
 float autocvar_g_monster_zombie_speed_walk;
 
-/*
-const float zombie_anim_attackleap                     = 0;
-const float zombie_anim_attackrun1                     = 1;
-const float zombie_anim_attackrun2                     = 2;
-const float zombie_anim_attackrun3                     = 3;
-const float zombie_anim_attackstanding1                = 4;
-const float zombie_anim_attackstanding2                = 5;
-const float zombie_anim_attackstanding3                = 6;
-const float zombie_anim_blockend                       = 7;
-const float zombie_anim_blockstart                     = 8;
-const float zombie_anim_deathback1                     = 9;
-const float zombie_anim_deathback2                     = 10;
-const float zombie_anim_deathback3                     = 11;
-const float zombie_anim_deathfront1                    = 12;
-const float zombie_anim_deathfront2                    = 13;
-const float zombie_anim_deathfront3                    = 14;
-const float zombie_anim_deathleft1                     = 15;
-const float zombie_anim_deathleft2                     = 16;
-const float zombie_anim_deathright1                    = 17;
-const float zombie_anim_deathright2                    = 18;
-const float zombie_anim_idle                           = 19;
-const float zombie_anim_painback1                      = 20;
-const float zombie_anim_painback2                      = 21;
-const float zombie_anim_painfront1                     = 22;
-const float zombie_anim_painfront2                     = 23;
-const float zombie_anim_runbackwards           = 24;
-const float zombie_anim_runbackwardsleft       = 25;
-const float zombie_anim_runbackwardsright      = 26;
-const float zombie_anim_runforward                     = 27;
-const float zombie_anim_runforwardleft         = 28;
-const float zombie_anim_runforwardright                = 29;
-const float zombie_anim_spawn                          = 30;
-*/
-
 .vector moveto;
 
 void M_Zombie_Attack_Leap_Touch(entity this, entity toucher)
@@ -141,7 +107,8 @@ METHOD(Zombie, mr_pain, float(Zombie this, entity actor, float damage_take, enti
 {
     TC(Zombie, this);
     actor.pain_finished = time + 0.34;
-    setanim(actor, ((random() > 0.5) ? actor.anim_pain1 : actor.anim_pain2), true, true, false);
+    if(time >= actor.spawn_time)
+       setanim(actor, ((random() > 0.5) ? actor.anim_pain1 : actor.anim_pain2), true, true, false);
     return damage_take;
 }
 
index e3eaf6ecd1b5ea88706b1619bf51505026b8f809..fc1681a91410065817cabc8570873d299d7b4280 100644 (file)
@@ -63,6 +63,21 @@ void monster_dropitem(entity this, entity attacker)
        }
 }
 
+bool monster_facing(entity this, entity targ)
+{
+       // relies on target having an origin
+       makevectors(this.angles);
+       vector targ_org = targ.origin, my_org = this.origin;
+       if(autocvar_g_monsters_target_infront_2d)
+       {
+               targ_org = vec2(targ_org);
+               my_org = vec2(my_org);
+       }
+       float dot = normalize(targ_org - my_org) * v_forward;
+
+       return !(dot <= autocvar_g_monsters_target_infront_range);
+}
+
 void monster_makevectors(entity this, entity targ)
 {
        if(IS_MONSTER(this))
@@ -79,13 +94,12 @@ void monster_makevectors(entity this, entity targ)
 // Target handling
 // ===============
 
-bool Monster_ValidTarget(entity this, entity targ)
+bool Monster_ValidTarget(entity this, entity targ, bool skipfacing)
 {
        // ensure we're not checking nonexistent monster/target
        if(!this || !targ) { return false; }
 
        if((targ == this)
-       || (autocvar_g_monsters_lineofsight && !checkpvs(this.origin + this.view_ofs, targ)) // enemy cannot be seen
        || (IS_VEHICLE(targ) && !(this.monsterdef.spawnflags & MON_FLAG_RANGED)) // melee vs vehicle is useless
        || (time < game_starttime) // monsters do nothing before match has started
        || (targ.takedamage == DAMAGE_NO)
@@ -98,6 +112,7 @@ bool Monster_ValidTarget(entity this, entity targ)
        || (SAME_TEAM(targ, this))
        || (STAT(FROZEN, targ))
        || (targ.alpha != 0 && targ.alpha < 0.5)
+       || (autocvar_g_monsters_lineofsight && !checkpvs(this.origin + this.view_ofs, targ)) // enemy cannot be seen
        || (MUTATOR_CALLHOOK(MonsterValidTarget, this, targ))
        )
        {
@@ -106,18 +121,16 @@ bool Monster_ValidTarget(entity this, entity targ)
        }
 
        vector targ_origin = ((targ.absmin + targ.absmax) * 0.5);
-       traceline(this.origin + this.view_ofs, targ_origin, MOVE_NOMONSTERS, this);
+       traceline(this.origin + this.view_ofs, targ_origin, MOVE_NOMONSTERS, this); // TODO: maybe we can rely a bit on PVS data instead?
 
        if(trace_fraction < 1 && trace_ent != targ)
                return false; // solid
 
-       if(autocvar_g_monsters_target_infront || (this.spawnflags & MONSTERFLAG_INFRONT))
+       if(!skipfacing && (autocvar_g_monsters_target_infront || (this.spawnflags & MONSTERFLAG_INFRONT)))
        if(this.enemy != targ)
        {
-               makevectors (this.angles);
-               float dot = normalize (targ.origin - this.origin) * v_forward;
-
-               if(dot <= autocvar_g_monsters_target_infront_range) { return false; }
+               if(!monster_facing(this, targ))
+                       return false;
        }
 
        return true; // this target is valid!
@@ -131,21 +144,27 @@ entity Monster_FindTarget(entity this)
        vector my_center = CENTER_OR_VIEWOFS(this);
 
        // find the closest acceptable target to pass to
-       IL_EACH(g_monster_targets, it.monster_attack && vdist(it.origin - this.origin, <, this.target_range),
+       IL_EACH(g_monster_targets, it.monster_attack,
        {
-               if(Monster_ValidTarget(this, it))
-               {
-                       // if it's a player, use the view origin as reference (stolen from RadiusDamage functions in damage.qc)
-                       vector targ_center = CENTER_OR_VIEWOFS(it);
+               float trange = this.target_range;
+               if(PHYS_INPUT_BUTTON_CROUCH(it))
+                       trange *= 0.75; // TODO cvar this
+               vector theirmid = (it.absmin + it.absmax) * 0.5;
+               if(vdist(theirmid - this.origin, >, trange))
+                       continue;
+               if(!Monster_ValidTarget(this, it, false))
+                       continue;
 
-                       if(closest_target)
-                       {
-                               vector closest_target_center = CENTER_OR_VIEWOFS(closest_target);
-                               if(vlen2(my_center - targ_center) < vlen2(my_center - closest_target_center))
-                                       { closest_target = it; }
-                       }
-                       else { closest_target = it; }
+               // if it's a player, use the view origin as reference (stolen from RadiusDamage functions in g_damage.qc)
+               vector targ_center = CENTER_OR_VIEWOFS(it);
+
+               if(closest_target)
+               {
+                       vector closest_target_center = CENTER_OR_VIEWOFS(closest_target);
+                       if(vlen2(my_center - targ_center) < vlen2(my_center - closest_target_center))
+                               { closest_target = it; }
                }
+               else { closest_target = it; }
        });
 
        return closest_target;
@@ -160,18 +179,23 @@ void monster_setupcolors(entity this)
        else
        {
                if(this.monster_skill <= MONSTER_SKILL_EASY)
-                       this.colormap = 1029;
+                       this.colormap = 1126;
                else if(this.monster_skill <= MONSTER_SKILL_MEDIUM)
-                       this.colormap = 1027;
+                       this.colormap = 1075;
                else if(this.monster_skill <= MONSTER_SKILL_HARD)
-                       this.colormap = 1038;
+                       this.colormap = 1228;
                else if(this.monster_skill <= MONSTER_SKILL_INSANE)
-                       this.colormap = 1028;
+                       this.colormap = 1092;
                else if(this.monster_skill <= MONSTER_SKILL_NIGHTMARE)
-                       this.colormap = 1032;
+                       this.colormap = 1160;
                else
                        this.colormap = 1024;
        }
+
+       if(this.colormap > 0)
+               this.glowmod = colormapPaletteColor(this.colormap & 0x0F, false);
+       else
+               this.glowmod = '1 1 1';
 }
 
 void monster_changeteam(entity this, int newteam)
@@ -196,7 +220,8 @@ void monster_changeteam(entity this, int newteam)
 .void(entity) monster_delayedfunc;
 void Monster_Delay_Action(entity this)
 {
-       if(Monster_ValidTarget(this.owner, this.owner.enemy))
+       // TODO: maybe do check for facing here
+       if(Monster_ValidTarget(this.owner, this.owner.enemy, false))
        {
                monster_makevectors(this.owner, this.owner.enemy);
                this.monster_delayedfunc(this.owner);
@@ -348,7 +373,6 @@ void Monster_Sound(entity this, .string samplefield, float sound_delay, bool del
        string sample = this.(samplefield);
        if (sample != "") sample = GlobalSound_sample(sample, random());
        float myscale = ((this.scale) ? this.scale : 1); // safety net
-       // TODO: change volume depending on size too?
        sound7(this, chan, sample, VOL_BASE, ATTEN_NORM, 100 / myscale, 0);
 
        this.msound_delay = time + sound_delay;
@@ -428,7 +452,9 @@ void Monster_Attack_Check(entity this, entity targ, .entity weaponentity)
 
        if((!this || !targ)
        || (!this.monster_attackfunc)
+       || (game_stopped)
        || (time < this.attack_finished_single[slot])
+       || ((autocvar_g_monsters_target_infront || (this.spawnflags & MONSTERFLAG_INFRONT)) && !monster_facing(this, targ))
        ) { return; }
 
        if(vdist(targ.origin - this.origin, <=, this.attack_range))
@@ -478,12 +504,10 @@ void Monster_UpdateModel(entity this)
 
 void Monster_Touch(entity this, entity toucher)
 {
-       if(toucher == NULL) { return; }
+       if(!toucher) { return; }
 
-       if(toucher.monster_attack)
-       if(this.enemy != toucher)
-       if(!IS_MONSTER(toucher))
-       if(Monster_ValidTarget(this, toucher))
+       if(toucher.monster_attack && this.enemy != toucher && !IS_MONSTER(toucher) && time >= this.spawn_time)
+       if(Monster_ValidTarget(this, toucher, true))
                this.enemy = toucher;
 }
 
@@ -556,10 +580,9 @@ void Monster_Dead_Fade(entity this)
 
 void Monster_Use(entity this, entity actor, entity trigger)
 {
-       if(Monster_ValidTarget(this, actor)) { this.enemy = actor; }
+       if(Monster_ValidTarget(this, actor, true)) { this.enemy = actor; }
 }
 
-.float pass_distance;
 vector Monster_Move_Target(entity this, entity targ)
 {
        // enemy is always preferred target
@@ -567,21 +590,6 @@ vector Monster_Move_Target(entity this, entity targ)
        {
                vector targ_origin = ((this.enemy.absmin + this.enemy.absmax) * 0.5);
                targ_origin = WarpZone_RefSys_TransformOrigin(this.enemy, this, targ_origin); // origin of target as seen by the monster (us)
-               WarpZone_TraceLine(this.origin, targ_origin, MOVE_NOMONSTERS, this);
-
-               // cases where the enemy may have changed their state (don't need to check everything here)
-               if((!this.enemy)
-                       || (IS_DEAD(this.enemy) || GetResource(this.enemy, RES_HEALTH) < 1)
-                       || (STAT(FROZEN, this.enemy))
-                       || (this.enemy.flags & FL_NOTARGET)
-                       || (this.enemy.alpha < 0.5 && this.enemy.alpha != 0)
-                       || (this.enemy.takedamage == DAMAGE_NO)
-                       || (vdist(this.origin - targ_origin, >, this.target_range))
-                       || ((trace_fraction < 1) && (trace_ent != this.enemy)))
-               {
-                       this.enemy = NULL;
-                       //this.pass_distance = 0;
-               }
 
                if(this.enemy)
                {
@@ -669,42 +677,6 @@ vector Monster_Move_Target(entity this, entity targ)
        }
 }
 
-void Monster_CalculateVelocity(entity this, vector to, vector from, float turnrate, float movespeed)
-{
-       //float current_distance = vlen((('1 0 0' * to.x) + ('0 1 0' * to.y)) - (('1 0 0' * from.x) + ('0 1 0' * from.y))); // for the sake of this check, exclude Z axis
-       //float initial_height = 0; //min(50, (targ_distance * tanh(20)));
-       //float current_height = (initial_height * min(1, (this.pass_distance) ? (current_distance / this.pass_distance) : current_distance));
-       //print("current_height = ", ftos(current_height), ", initial_height = ", ftos(initial_height), ".\n");
-
-       vector targpos = to;
-#if 0
-       if(current_height) // make sure we can actually do this arcing path
-       {
-               targpos = (to + ('0 0 1' * current_height));
-               WarpZone_TraceLine(this.origin, targpos, MOVE_NOMONSTERS, this);
-               if(trace_fraction < 1)
-               {
-                       //print("normal arc line failed, trying to find new pos...");
-                       WarpZone_TraceLine(to, targpos, MOVE_NOMONSTERS, this);
-                       targpos = (trace_endpos + '0 0 -10');
-                       WarpZone_TraceLine(this.origin, targpos, MOVE_NOMONSTERS, this);
-                       if(trace_fraction < 1) { targpos = to; /* print(" ^1FAILURE^7, reverting to original direction.\n"); */ }
-                       /*else { print(" ^3SUCCESS^7, using new arc line.\n"); } */
-               }
-       }
-       else { targpos = to; }
-#endif
-
-       //this.angles = normalize(('0 1 0' * to_y) - ('0 1 0' * from_y));
-
-       vector desired_direction = normalize(targpos - from);
-       if(turnrate) { this.velocity = (normalize(normalize(this.velocity) + (desired_direction * 50)) * movespeed); }
-       else { this.velocity = (desired_direction * movespeed); }
-
-       //this.steerto = steerlib_attract2(targpos, 0.5, 500, 0.95);
-       //this.angles = vectoangles(this.velocity);
-}
-
 .entity draggedby;
 
 void Monster_Move(entity this, float runspeed, float walkspeed, float stpspeed)
@@ -806,13 +778,15 @@ void Monster_Move(entity this, float runspeed, float walkspeed, float stpspeed)
        if(!(this.spawnflags & MONSTERFLAG_FLY_VERTICAL) && !(this.flags & FL_SWIM))
                this.moveto_z = this.origin_z;
 
-       if(vdist(this.origin - this.moveto, >, 100))
+       fixedmakevectors(this.angles);
+       float vz = this.velocity_z;
+
+       if(!turret_closetotarget(this, this.moveto, 16))
        {
                bool do_run = (this.enemy || this.monster_moveto);
-               if(IS_ONGROUND(this) || ((this.flags & FL_FLY) || (this.flags & FL_SWIM)))
-                       Monster_CalculateVelocity(this, this.moveto, this.origin, true, ((do_run) ? runspeed : walkspeed));
+               movelib_move_simple(this, v_forward, ((do_run) ? runspeed : walkspeed), 0.4);
 
-               if(time > this.pain_finished && time > this.anim_finished) // TODO: use anim_finished instead!?
+               if(time > this.pain_finished && time > this.anim_finished)
                if(!this.state)
                {
                        if(vdist(this.velocity, >, 10))
@@ -836,6 +810,9 @@ void Monster_Move(entity this, float runspeed, float walkspeed, float stpspeed)
                        setanim(this, this.anim_idle, true, false, false);
        }
 
+       if(!((this.flags & FL_FLY) || (this.flags & FL_SWIM)))
+               this.velocity_z = vz;
+
        this.steerto = steerlib_attract2(this, ((this.monster_face) ? this.monster_face : this.moveto), 0.5, 500, 0.95);
 
        vector real_angle = vectoangles(this.steerto) - this.angles;
@@ -874,6 +851,9 @@ void Monster_Dead_Think(entity this)
 {
        this.nextthink = time + this.ticrate;
 
+       Monster mon = REGISTRY_GET(Monsters, this.monsterid);
+       mon.mr_deadthink(mon, this);
+
        if(this.monster_lifetime != 0)
        if(time >= this.monster_lifetime)
        {
@@ -978,6 +958,7 @@ void Monster_Dead(entity this, entity attacker, float gibbed)
        this.state                      = 0;
        this.attack_finished_single[0] = 0;
        this.effects = 0;
+       this.dphitcontentsmask &= ~DPCONTENTS_BODY;
 
        if(!((this.flags & FL_FLY) || (this.flags & FL_SWIM)))
                this.velocity = '0 0 0';
@@ -1206,21 +1187,41 @@ void Monster_Frozen_Think(entity this)
 
 void Monster_Enemy_Check(entity this)
 {
-       if(!this.enemy)
+       if(this.enemy)
        {
-               this.enemy = Monster_FindTarget(this);
-               if(this.enemy)
+               vector targ_origin = ((this.enemy.absmin + this.enemy.absmax) * 0.5);
+               targ_origin = WarpZone_RefSys_TransformOrigin(this.enemy, this, targ_origin); // origin of target as seen by the monster (us)
+               WarpZone_TraceLine(this.origin, targ_origin, MOVE_NOMONSTERS, this);
+
+               // cases where the enemy may have changed their state (don't need to check everything here)
+               if(    (IS_DEAD(this.enemy) || GetResource(this.enemy, RES_HEALTH) < 1)
+                       || (STAT(FROZEN, this.enemy))
+                       || (this.enemy.flags & FL_NOTARGET)
+                       || (this.enemy.alpha < 0.5 && this.enemy.alpha != 0)
+                       || (this.enemy.takedamage == DAMAGE_NO)
+                       || (vdist(this.origin - targ_origin, >, this.target_range))
+                       || ((trace_fraction < 1) && (trace_ent != this.enemy))
+                       )
                {
-                       WarpZone_RefSys_Copy(this.enemy, this);
-                       WarpZone_RefSys_AddInverse(this.enemy, this); // wz1^-1 ... wzn^-1 receiver
-                       // update move target immediately?
-                       this.moveto = WarpZone_RefSys_TransformOrigin(this.enemy, this, (0.5 * (this.enemy.absmin + this.enemy.absmax)));
-                       this.monster_moveto = '0 0 0';
-                       this.monster_face = '0 0 0';
-
-                       //this.pass_distance = vlen((('1 0 0' * this.enemy.origin_x) + ('0 1 0' * this.enemy.origin_y)) - (('1 0 0' *  this.origin_x) + ('0 1 0' *  this.origin_y)));
-                       Monster_Sound(this, monstersound_sight, 0, false, CH_VOICE);
+                       this.enemy = NULL;
                }
+               else
+               {
+                       return;
+               }
+       }
+
+       this.enemy = Monster_FindTarget(this);
+       if(this.enemy)
+       {
+               WarpZone_RefSys_Copy(this.enemy, this);
+               WarpZone_RefSys_AddInverse(this.enemy, this); // wz1^-1 ... wzn^-1 receiver
+               // update move target immediately?
+               this.moveto = WarpZone_RefSys_TransformOrigin(this.enemy, this, (0.5 * (this.enemy.absmin + this.enemy.absmax)));
+               this.monster_moveto = '0 0 0';
+               this.monster_face = '0 0 0';
+
+               Monster_Sound(this, monstersound_sight, 0, false, CH_VOICE);
        }
 }
 
@@ -1282,6 +1283,7 @@ bool Monster_Spawn_Setup(entity this)
 
        this.max_health = GetResource(this, RES_HEALTH);
        this.pain_finished = this.nextthink;
+       this.last_enemycheck = this.spawn_time + random(); // slight delay
 
        if(IS_PLAYER(this.monster_follow))
                this.effects |= EF_DIMLIGHT;
@@ -1360,6 +1362,9 @@ bool Monster_Spawn(entity this, bool check_appear, Monster mon)
        else
                setmodel(this, mon.m_model);
 
+       if(!this.monster_name || this.monster_name == "")
+               this.monster_name = mon.monster_name;
+
        if(this.statuseffects && this.statuseffects.owner == this)
        {
                StatusEffects_clearall(this.statuseffects);
@@ -1395,11 +1400,8 @@ bool Monster_Spawn(entity this, bool check_appear, Monster mon)
        this.reset                              = Monster_Reset;
        this.netname                    = mon.netname;
        this.monster_attackfunc = mon.monster_attackfunc;
-       this.monster_name               = mon.monster_name;
        this.candrop                    = true;
-       this.view_ofs                   = '0 0 0.7' * (this.maxs_z * 0.5);
        this.oldtarget2                 = this.target2;
-       //this.pass_distance            = 0;
        this.deadflag                   = DEAD_NO;
        this.spawn_time                 = time;
        this.gravity                    = 1;
@@ -1414,7 +1416,7 @@ bool Monster_Spawn(entity this, bool check_appear, Monster mon)
        if(autocvar_g_nodepthtestplayers) { this.effects |= EF_NODEPTHTEST; }
        if(mon.spawnflags & MONSTER_TYPE_SWIM) { this.flags |= FL_SWIM; }
 
-       if(autocvar_g_playerclip_collisions)
+       if(autocvar_g_monsters_playerclip_collisions)
                this.dphitcontentsmask |= DPCONTENTS_PLAYERCLIP;
 
        if(mon.spawnflags & MONSTER_TYPE_FLY)
@@ -1423,17 +1425,11 @@ bool Monster_Spawn(entity this, bool check_appear, Monster mon)
                set_movetype(this, MOVETYPE_FLY);
        }
 
-       if(!(this.spawnflags & MONSTERFLAG_RESPAWNED))
-       {
-               if(mon.spawnflags & MONSTER_SIZE_BROKEN)
-                       this.scale *= 1.3;
-
-               if(mon.spawnflags & MONSTER_SIZE_QUAKE)
-               if(autocvar_g_monsters_quake_resize)
-                       this.scale *= 1.3;
-       }
+       if((mon.spawnflags & MONSTER_SIZE_QUAKE) && autocvar_g_monsters_quake_resize && !(this.spawnflags & MONSTERFLAG_RESPAWNED))
+               this.scale *= 1.3;
 
        setsize(this, mon.m_mins * this.scale, mon.m_maxs * this.scale);
+       this.view_ofs                   = '0 0 0.7' * (this.maxs_z * 0.5);
 
        this.ticrate = bound(sys_frametime, ((!this.ticrate) ? autocvar_g_monsters_think_delay : this.ticrate), 60);
 
index 89541935b7a1b9f5adf66c9df6378e345491fe7b..6a3fdd1c491dc54ba641da4b3b2738533539b7a9 100644 (file)
@@ -12,11 +12,13 @@ float autocvar_g_monsters_damageforcescale = 0.8;
 float autocvar_g_monsters_target_range;
 bool autocvar_g_monsters_target_infront;
 float autocvar_g_monsters_target_infront_range = 0.3;
+bool autocvar_g_monsters_target_infront_2d = true;
 float autocvar_g_monsters_attack_range;
 int autocvar_g_monsters_score_kill;
 int autocvar_g_monsters_score_spawned;
 bool autocvar_g_monsters_typefrag;
 bool autocvar_g_monsters_owners;
+bool autocvar_g_monsters_playerclip_collisions;
 float autocvar_g_monsters_miniboss_chance;
 float autocvar_g_monsters_miniboss_healthboost;
 float autocvar_g_monsters_drop_time;
index df21418869423c289f16343f6df649dfc1ee8a02..87398b11d222367c1aeafa752eecab84b02e3f0d 100644 (file)
@@ -300,9 +300,9 @@ string multiteam_info_sprintf(string input, string teamname) { return ((input !=
     MSG_INFO_NOTIF(DEATH_SELF_GENERIC,                      N_CONSOLE,  2, 1, "s1 s2loc spree_lost", "s1",      "notify_selfkill",      _("^BG%s^K1 died%s%s"), "")
     MSG_INFO_NOTIF(DEATH_SELF_LAVA,                         N_CONSOLE,  2, 1, "s1 s2loc spree_lost", "s1",      "notify_lava",          _("^BG%s^K1 turned into hot slag%s%s"), _("^BG%s^K1 found a hot place%s%s"))
     MSG_INFO_NOTIF(DEATH_SELF_MON_MAGE,                     N_CONSOLE,  2, 1, "s1 s2loc spree_lost", "s1",      "notify_death",         _("^BG%s^K1 was exploded by a Mage%s%s"), "")
-    MSG_INFO_NOTIF(DEATH_SELF_MON_SHAMBLER_CLAW,            N_CONSOLE,  2, 1, "s1 s2loc spree_lost", "s1",      "notify_death",         _("^BG%s^K1's innards became outwards by a Golem%s%s"), "")
-    MSG_INFO_NOTIF(DEATH_SELF_MON_SHAMBLER_SMASH,           N_CONSOLE,  2, 1, "s1 s2loc spree_lost", "s1",      "notify_death",         _("^BG%s^K1 was smashed by a Golem%s%s"), "")
-    MSG_INFO_NOTIF(DEATH_SELF_MON_SHAMBLER_ZAP,             N_CONSOLE,  2, 1, "s1 s2loc spree_lost", "s1",      "notify_death",         _("^BG%s^K1 was zapped to death by a Golem%s%s"), "")
+    MSG_INFO_NOTIF(DEATH_SELF_MON_GOLEM_CLAW,               N_CONSOLE,  2, 1, "s1 s2loc spree_lost", "s1",      "notify_death",         _("^BG%s^K1's innards became outwards by a Golem%s%s"), "")
+    MSG_INFO_NOTIF(DEATH_SELF_MON_GOLEM_SMASH,              N_CONSOLE,  2, 1, "s1 s2loc spree_lost", "s1",      "notify_death",         _("^BG%s^K1 was smashed by a Golem%s%s"), "")
+    MSG_INFO_NOTIF(DEATH_SELF_MON_GOLEM_ZAP,                N_CONSOLE,  2, 1, "s1 s2loc spree_lost", "s1",      "notify_death",         _("^BG%s^K1 was zapped to death by a Golem%s%s"), "")
     MSG_INFO_NOTIF(DEATH_SELF_MON_SPIDER,                   N_CONSOLE,  2, 1, "s1 s2loc spree_lost", "s1",      "notify_death",         _("^BG%s^K1 was bitten by a Spider%s%s"), "")
     MSG_INFO_NOTIF(DEATH_SELF_MON_WYVERN,                   N_CONSOLE,  2, 1, "s1 s2loc spree_lost", "s1",      "notify_death",         _("^BG%s^K1 was fireballed by a Wyvern%s%s"), "")
     MSG_INFO_NOTIF(DEATH_SELF_MON_ZOMBIE_JUMP,              N_CONSOLE,  2, 1, "s1 s2loc spree_lost", "s1",      "notify_death",         _("^BG%s^K1 joins the Zombies%s%s"), "")
@@ -834,9 +834,9 @@ string multiteam_info_sprintf(string input, string teamname) { return ((input !=
     MSG_MULTI_NOTIF(DEATH_SELF_GENERIC,                 N_ENABLE,  NULL,           INFO_DEATH_SELF_GENERIC,                CENTER_DEATH_SELF_GENERIC)
     MSG_MULTI_NOTIF(DEATH_SELF_LAVA,                    N_ENABLE,  NULL,           INFO_DEATH_SELF_LAVA,                   CENTER_DEATH_SELF_LAVA)
     MSG_MULTI_NOTIF(DEATH_SELF_MON_MAGE,                N_ENABLE,  NULL,           INFO_DEATH_SELF_MON_MAGE,               CENTER_DEATH_SELF_MONSTER)
-    MSG_MULTI_NOTIF(DEATH_SELF_MON_SHAMBLER_CLAW,       N_ENABLE,  NULL,           INFO_DEATH_SELF_MON_SHAMBLER_CLAW,      CENTER_DEATH_SELF_MONSTER)
-    MSG_MULTI_NOTIF(DEATH_SELF_MON_SHAMBLER_SMASH,      N_ENABLE,  NULL,           INFO_DEATH_SELF_MON_SHAMBLER_SMASH,     CENTER_DEATH_SELF_MONSTER)
-    MSG_MULTI_NOTIF(DEATH_SELF_MON_SHAMBLER_ZAP,        N_ENABLE,  NULL,           INFO_DEATH_SELF_MON_SHAMBLER_ZAP,       CENTER_DEATH_SELF_MONSTER)
+    MSG_MULTI_NOTIF(DEATH_SELF_MON_GOLEM_CLAW,          N_ENABLE,  NULL,           INFO_DEATH_SELF_MON_GOLEM_CLAW,         CENTER_DEATH_SELF_MONSTER)
+    MSG_MULTI_NOTIF(DEATH_SELF_MON_GOLEM_SMASH,         N_ENABLE,  NULL,           INFO_DEATH_SELF_MON_GOLEM_SMASH,        CENTER_DEATH_SELF_MONSTER)
+    MSG_MULTI_NOTIF(DEATH_SELF_MON_GOLEM_ZAP,           N_ENABLE,  NULL,           INFO_DEATH_SELF_MON_GOLEM_ZAP,          CENTER_DEATH_SELF_MONSTER)
     MSG_MULTI_NOTIF(DEATH_SELF_MON_SPIDER,              N_ENABLE,  NULL,           INFO_DEATH_SELF_MON_SPIDER,             CENTER_DEATH_SELF_MONSTER)
     MSG_MULTI_NOTIF(DEATH_SELF_MON_WYVERN,              N_ENABLE,  NULL,           INFO_DEATH_SELF_MON_WYVERN,             CENTER_DEATH_SELF_MONSTER)
     MSG_MULTI_NOTIF(DEATH_SELF_MON_ZOMBIE_JUMP,         N_ENABLE,  NULL,           INFO_DEATH_SELF_MON_ZOMBIE_JUMP,        CENTER_DEATH_SELF_MONSTER)
index 2157062b2a7f5f3806c62055bded9a971fda7957..aff0f764c7759c2955a527f55960725dca8526e6 100644 (file)
@@ -10,7 +10,7 @@ void turret_remove(entity this)
 .vector glowmod;
 void turret_changeteam(entity this)
 {
-       this.glowmod = Team_ColorRGB(this.team - 1) * 2;
+       this.glowmod = Team_ColorRGB(this.team - 1);
        this.teamradar_color = Team_ColorRGB(this.team - 1);
 
        if(this.team)
index 1b5e7cdb84ed9e098cd0f0dfff71931bbbb48ec0..2e6068bf56ac823cbefc287b163941447c19a7b8 100644 (file)
@@ -1245,9 +1245,9 @@ void turret_initparams(entity tur)
        #undef TRY
 }
 
-bool turret_closetotarget(entity this, vector targ)
+bool turret_closetotarget(entity this, vector targ, float range)
 {
-       vector path_extra_size = '64 64 64';
+       vector path_extra_size = '1 1 1' * range;
        return boxesoverlap(targ - path_extra_size, targ + path_extra_size, this.absmin - path_extra_size, this.absmax + path_extra_size);
 }
 
index cdd9e57bfa2e7c1f65b041a2f7a93acbfd8657a6..727a8cbc748f4013750852c49c9b3726b6cb73ee 100644 (file)
@@ -77,7 +77,7 @@ void turrets_setframe(entity this, float _frame, float client_only);
 bool turret_initialize(entity this, Turret tur);
 
 // returns true when box overlaps with a given location
-bool turret_closetotarget(entity this, vector targ);
+bool turret_closetotarget(entity this, vector targ, float range);
 
 /// Function to use for target evaluation. usualy turret_targetscore_generic
 .float(entity _turret, entity _target) turret_score_target;
index 90463697dbf9835e394f36ff343694216f8a852f..7312d0f16d34f624cc0dc37a5217ced176fee5c7 100644 (file)
@@ -17,7 +17,7 @@ const int ewheel_anim_bck_fast = 4;
 void ewheel_move_path(entity this)
 {
     // Are we close enough to a path node to switch to the next?
-    if(turret_closetotarget(this, this.pathcurrent.origin))
+    if(turret_closetotarget(this, this.pathcurrent.origin, 64))
     {
 #ifdef EWHEEL_FANCYPATH
         if (this.pathcurrent.path_next == NULL)
index 2718b1dc48e5c2051c36dfb687e31536a44c01bf..139a3a364ffaadebef904987f0486f29b2af33c3 100644 (file)
@@ -281,7 +281,7 @@ void walker_move_path(entity this)
 {
 #ifdef WALKER_FANCYPATHING
     // Are we close enougth to a path node to switch to the next?
-    if(turret_closetotarget(this, this.pathcurrent.origin))
+    if(turret_closetotarget(this, this.pathcurrent.origin, 64))
     {
         if (this.pathcurrent.path_next == NULL)
         {
@@ -312,7 +312,7 @@ void walker_move_path(entity this)
     walker_move_to(this, this.moveto, 0);
 
 #else
-    if(turret_closetotarget(this, this.pathcurrent.origin))
+    if(turret_closetotarget(this, this.pathcurrent.origin, 64))
         this.pathcurrent = this.pathcurrent.enemy;
 
     if(!this.pathcurrent)
index 6824680436fe3c5f320649053c2e697aa84d8ff6..356c3882a920d84537261cbc8b9acb9ba7b26be2 100644 (file)
@@ -308,14 +308,11 @@ WepSet WEPSET_SUPERWEAPONS;
 
 #include "all.inc"
 
-// TODO: remove after 0.8.2. Retains impulse number compatibility because 0.8.1 clients don't reload the weapons.cfg
-#define WEP_HARDCODED_IMPULSES 20
-
 // TODO: invert after 0.8.2. Will require moving 'best weapon' impulses
 #define WEP_IMPULSE_BEGIN 230
 #define WEP_IMPULSE_END bound(WEP_IMPULSE_BEGIN, WEP_IMPULSE_BEGIN + (REGISTRY_COUNT(Weapons) - 1) - 1, 253)
 
-REGISTRY_SORT(Weapons, WEP_HARDCODED_IMPULSES + 1)
+REGISTRY_SORT(Weapons, 1)
 REGISTRY_CHECK(Weapons)
 
 STATIC_INIT(register_weapons_done)
@@ -350,7 +347,7 @@ STATIC_INIT(register_weapons_done)
 vector weaponentity_glowmod(Weapon wep, entity actor, int c, entity wepent)
 {
     vector g;
-    if (!(g = wep.wr_glow(wep, actor, wepent))) g = colormapPaletteColor(c & 0x0F, true) * 2;
+    if (!(g = wep.wr_glow(wep, actor, wepent))) g = colormapPaletteColor(c & 0x0F, true);
     return g;
 }
 
index 5a782b98f9e462210ae5de73ec15102b340507b5..594c142494f4ea13305996c257d2745712e78727 100644 (file)
@@ -32,7 +32,7 @@ const int PROJECTILE_BUMBLE_GUN = 30;
 const int PROJECTILE_BUMBLE_BEAM = 31;
 
 const int PROJECTILE_MAGE_SPIKE = 32;
-const int PROJECTILE_SHAMBLER_LIGHTNING = 33;
+const int PROJECTILE_GOLEM_LIGHTNING = 33;
 
 const int PROJECTILE_ROCKETMINSTA_LASER = 34;
 
index 70615c5c14f22428f2f6b94b378558b557f940a7..582a64ee48b2279c7dfb9e50748c078d2ec6f826 100644 (file)
@@ -14,7 +14,7 @@ void XonoticMonsterToolsDialog_fill(entity me)
        me.TR(me);
                me.TD(me, 1, 0.4, e = makeXonoticRadioButton(2, "menu_monsters_edit_spawn", "zombie", _("Zombie")));
                me.TD(me, 1, 0.4, e = makeXonoticRadioButton(2, "menu_monsters_edit_spawn", "spider", _("Spider")));
-               me.TD(me, 1, 0.4, e = makeXonoticRadioButton(2, "menu_monsters_edit_spawn", "shambler", _("Golem")));
+               me.TD(me, 1, 0.4, e = makeXonoticRadioButton(2, "menu_monsters_edit_spawn", "golem", _("Golem")));
                me.TD(me, 1, 0.4, e = makeXonoticRadioButton(2, "menu_monsters_edit_spawn", "mage", _("Mage")));
                me.TD(me, 1, 0.4, e = makeXonoticRadioButton(2, "menu_monsters_edit_spawn", "wyvern", _("Wyvern")));
        me.TR(me);
index 691404ac117d183c95162716a60c886d405017cc..ab2712db8a1dc9000a29de15feccb22283be2f1d 100644 (file)
@@ -687,13 +687,13 @@ float updateCompression()
        GAMETYPE(MAPINFO_TYPE_ONSLAUGHT) \
        GAMETYPE(MAPINFO_TYPE_ASSAULT) \
        /* GAMETYPE(MAPINFO_TYPE_DUEL) */ \
-       /* GAMETYPE(MAPINFO_TYPE_INVASION) */ \
        /**/
 
 // hidden gametypes come last so indexing always works correctly
 #define HIDDEN_GAMETYPES \
        GAMETYPE(MAPINFO_TYPE_RACE) \
        GAMETYPE(MAPINFO_TYPE_CTS) \
+       GAMETYPE(MAPINFO_TYPE_INVASION) \
        /**/
 
 Gametype GameType_GetID(int cnt)
index 056a8e9e6ec7dae7efb4356cc4a2cf8b63f047d3..af7aeb059a63f9c438a65b06dd7cb8375a833b75 100644 (file)
@@ -347,7 +347,7 @@ void CommonCommand_editmob(int request, entity caller, int argc)
                                        string mon_oldname = mon.monster_name;
 
                                        mon.monster_name = argument;
-                                       if (mon.sprite)   WaypointSprite_UpdateSprites(mon.sprite, WP_Monster, WP_Null, WP_Null);
+                                       if (mon.sprite)   WaypointSprite_UpdateSprites(mon.sprite, WP_Monster, WP_Null, WP_Null); // TODO: the new name is never actually sent to CSQC!
                                        print_to(caller, sprintf("Your pet '%s' is now known as '%s'", mon_oldname, mon.monster_name));
                                        return;
                                }
index 47d2dfaa78d98c309cf5d28507bd477cd2dd5b59..1c589e5f00e7ae62fb915649b31dfeb0e5040902 100644 (file)
@@ -277,7 +277,6 @@ void cvar_changes_init()
                BADCVAR("g_duel_not_dm_maps");
                BADCVAR("g_freezetag");
                BADCVAR("g_freezetag_teams");
-               BADCVAR("g_invasion_teams");
                BADCVAR("g_invasion_type");
                BADCVAR("g_jailbreak");
                BADCVAR("g_jailbreak_teams");
@@ -1001,7 +1000,7 @@ spawnfunc(light)
        delete(this);
 }
 
-bool MoveToRandomLocationWithinBounds(entity e, vector boundmin, vector boundmax, float goodcontents, float badcontents, float badsurfaceflags, int attempts, float maxaboveground, float minviewdistance)
+bool MoveToRandomLocationWithinBounds(entity e, vector boundmin, vector boundmax, float goodcontents, float badcontents, float badsurfaceflags, int attempts, float maxaboveground, float minviewdistance, bool frompos)
 {
     float m = e.dphitcontentsmask;
     e.dphitcontentsmask = goodcontents | badcontents;
@@ -1058,15 +1057,23 @@ bool MoveToRandomLocationWithinBounds(entity e, vector boundmin, vector boundmax
             continue;
 
                // rule 4: we must "see" some spawnpoint or item
-           entity sp = NULL;
-           IL_EACH(g_spawnpoints, checkpvs(mstart, it),
-           {
-               if((traceline(mstart, it.origin, MOVE_NORMAL, e), trace_fraction) >= 1)
-               {
-                       sp = it;
-                       break;
-               }
-           });
+               entity sp = NULL;
+               if(frompos)
+               {
+                       if((traceline(mstart, e.origin, MOVE_NORMAL, e), trace_fraction) >= 1)
+                               sp = e;
+               }
+               if(!sp)
+               {
+                       IL_EACH(g_spawnpoints, checkpvs(mstart, it),
+                       {
+                               if((traceline(mstart, it.origin, MOVE_NORMAL, e), trace_fraction) >= 1)
+                               {
+                                       sp = it;
+                                       break;
+                               }
+                       });
+               }
                if(!sp)
                {
                        int items_checked = 0;
@@ -1125,7 +1132,7 @@ bool MoveToRandomLocationWithinBounds(entity e, vector boundmin, vector boundmax
 
 float MoveToRandomMapLocation(entity e, float goodcontents, float badcontents, float badsurfaceflags, float attempts, float maxaboveground, float minviewdistance)
 {
-       return MoveToRandomLocationWithinBounds(e, world.mins, world.maxs, goodcontents, badcontents, badsurfaceflags, attempts, maxaboveground, minviewdistance);
+       return MoveToRandomLocationWithinBounds(e, world.mins, world.maxs, goodcontents, badcontents, badsurfaceflags, attempts, maxaboveground, minviewdistance, false);
 }
 
 /*
index 242b3369470546ff8c0a1c4b0169e14605237044..e74ab2dc7589733b4ca9e4034ab587c49daa78d1 100644 (file)
@@ -143,7 +143,7 @@ void ReadyRestart(bool forceWarmupEnd);
 
 void DumpStats(float final);
 
-bool MoveToRandomLocationWithinBounds(entity e, vector boundmin, vector boundmax, float goodcontents, float badcontents, float badsurfaceflags, int attempts, float maxaboveground, float minviewdistance);
+bool MoveToRandomLocationWithinBounds(entity e, vector boundmin, vector boundmax, float goodcontents, float badcontents, float badsurfaceflags, int attempts, float maxaboveground, float minviewdistance, bool frompos);
 
 float MoveToRandomMapLocation(entity e, float goodcontents, float badcontents, float badsurfaceflags, float attempts, float maxaboveground, float minviewdistance);
 
diff --git a/scripts/golem.shader b/scripts/golem.shader
new file mode 100644 (file)
index 0000000..5ccfd24
--- /dev/null
@@ -0,0 +1,8 @@
+golem
+{
+       dpreflectcube cubemaps/default/sky
+       {
+               map textures/golem.tga
+               rgbgen lightingDiffuse
+       }
+}
\ No newline at end of file
diff --git a/scripts/nanomage.shader b/scripts/nanomage.shader
new file mode 100644 (file)
index 0000000..c0bd334
--- /dev/null
@@ -0,0 +1,8 @@
+nanomage
+{
+       dpreflectcube cubemaps/default/sky
+       {
+               map textures/nanomage.tga
+               rgbgen lightingDiffuse
+       }
+}
\ No newline at end of file
index 01c3e7450acb74f31d6ba0d6b7012ebf18bd9952..086d9c449fa1d4c5b1251ed2973ccde71ea8bdfc 100644 (file)
@@ -16,6 +16,15 @@ erebusfullbright
        }
 }
 
+megaerebus
+{
+       dpreflectcube cubemaps/default/sky
+       {
+               map textures/megaerebus.tga
+               rgbgen lightingDiffuse
+       }
+}
+
 shadowhead
 {
        dpreflectcube cubemaps/default/sky
@@ -24,3 +33,12 @@ shadowhead
                rgbgen lightingDiffuse
        }
 }
+
+shadowheadfb
+{
+       dpreflectcube cubemaps/default/sky
+       {
+               map textures/shadowheadfb.tga
+               rgbgen lightingDiffuse
+       }
+}
index 81fc6fc58afefcc0f2edc236cded4af6f98339fb..322463a2d663aee1b3b40754f7c8816d3ed9e7e5 100644 (file)
@@ -6,6 +6,7 @@ ignis
                rgbgen lightingDiffuse
        }
 }
+
 ignisfullbright
 {
        dpreflectcube cubemaps/default/sky
@@ -23,3 +24,12 @@ ignishead
                rgbgen lightingDiffuse
        }
 }
+
+ignisheadfb
+{
+       dpreflectcube cubemaps/default/sky
+       {
+               map textures/ignisheadfb.tga
+               rgbgen lightingDiffuse
+       }
+}
diff --git a/scripts/spider.shader b/scripts/spider.shader
new file mode 100644 (file)
index 0000000..ed47960
--- /dev/null
@@ -0,0 +1,8 @@
+spider
+{
+       dpreflectcube cubemaps/default/sky
+       {
+               map textures/spider.tga
+               rgbgen lightingDiffuse
+       }
+}
\ No newline at end of file
diff --git a/sound/monsters/golem/death1.wav b/sound/monsters/golem/death1.wav
new file mode 100644 (file)
index 0000000..211656a
Binary files /dev/null and b/sound/monsters/golem/death1.wav differ
diff --git a/sound/monsters/golem/death2.wav b/sound/monsters/golem/death2.wav
new file mode 100644 (file)
index 0000000..bd68826
Binary files /dev/null and b/sound/monsters/golem/death2.wav differ
diff --git a/sound/monsters/golem/death3.wav b/sound/monsters/golem/death3.wav
new file mode 100644 (file)
index 0000000..09608f5
Binary files /dev/null and b/sound/monsters/golem/death3.wav differ
diff --git a/sound/monsters/golem/idle1.wav b/sound/monsters/golem/idle1.wav
new file mode 100644 (file)
index 0000000..cc67c22
Binary files /dev/null and b/sound/monsters/golem/idle1.wav differ
diff --git a/sound/monsters/golem/idle2.wav b/sound/monsters/golem/idle2.wav
new file mode 100644 (file)
index 0000000..478913d
Binary files /dev/null and b/sound/monsters/golem/idle2.wav differ
diff --git a/sound/monsters/golem/melee.wav b/sound/monsters/golem/melee.wav
new file mode 100644 (file)
index 0000000..cc67c22
Binary files /dev/null and b/sound/monsters/golem/melee.wav differ
diff --git a/sound/monsters/golem/pain1.wav b/sound/monsters/golem/pain1.wav
new file mode 100644 (file)
index 0000000..328dafc
Binary files /dev/null and b/sound/monsters/golem/pain1.wav differ
diff --git a/sound/monsters/golem/pain2.wav b/sound/monsters/golem/pain2.wav
new file mode 100644 (file)
index 0000000..2c056bd
Binary files /dev/null and b/sound/monsters/golem/pain2.wav differ
diff --git a/sound/monsters/golem/sight.wav b/sound/monsters/golem/sight.wav
new file mode 100644 (file)
index 0000000..85e5682
Binary files /dev/null and b/sound/monsters/golem/sight.wav differ
diff --git a/sound/monsters/shambler/idle1.wav b/sound/monsters/shambler/idle1.wav
deleted file mode 100644 (file)
index bc0f256..0000000
Binary files a/sound/monsters/shambler/idle1.wav and /dev/null differ
diff --git a/sound/monsters/shambler/idle2.wav b/sound/monsters/shambler/idle2.wav
deleted file mode 100644 (file)
index 58842b8..0000000
Binary files a/sound/monsters/shambler/idle2.wav and /dev/null differ
diff --git a/sound/monsters/shambler/sight.wav b/sound/monsters/shambler/sight.wav
deleted file mode 100644 (file)
index 8b75efd..0000000
Binary files a/sound/monsters/shambler/sight.wav and /dev/null differ
index a91959d3663f7d20ae2a3d6c6bdccc43ea360eff..f4f00c6f97409ba06d9f755436aa1208fa5642a2 100644 (file)
Binary files a/textures/erebusfullbright_glow.tga and b/textures/erebusfullbright_glow.tga differ
index 9aee3c18ac244bb629958d4c4e6d988606c2533a..2c54e978312bb292a913f4f738529fa8c73ad944 100644 (file)
Binary files a/textures/erebusfullbright_shirt.tga and b/textures/erebusfullbright_shirt.tga differ
index 946e6b555736fecf36484571862f9444c79dbeae..c956996a8a6a5d3c3afb85bc4b119bf84a697576 100644 (file)
Binary files a/textures/gakarmor_glow.tga and b/textures/gakarmor_glow.tga differ
diff --git a/textures/gakarmor_shirt.tga b/textures/gakarmor_shirt.tga
deleted file mode 100644 (file)
index ce4b6d6..0000000
Binary files a/textures/gakarmor_shirt.tga and /dev/null differ
index e506ce05fd994bbf6242ced5a9fb56485eff5a46..3e519002304f879ec6842eb8cd6d792370478c6d 100644 (file)
Binary files a/textures/gakarmorfb_glow.tga and b/textures/gakarmorfb_glow.tga differ
diff --git a/textures/gakarmorfb_shirt.tga b/textures/gakarmorfb_shirt.tga
deleted file mode 100644 (file)
index ce4b6d6..0000000
Binary files a/textures/gakarmorfb_shirt.tga and /dev/null differ
index edd50b1be4b457e77423f288cb0c2eaf340df376..9aee3c18ac244bb629958d4c4e6d988606c2533a 100644 (file)
Binary files a/textures/gakfullbright_glow.tga and b/textures/gakfullbright_glow.tga differ
index 4f9d05336f56564c68ea9dbdd9fc81851589a681..71b570f168e7ce0dcb57b6f427ad3c38e10887b6 100644 (file)
Binary files a/textures/gakfullbright_shirt.tga and b/textures/gakfullbright_shirt.tga differ
diff --git a/textures/glow_reflect.tga b/textures/glow_reflect.tga
new file mode 100644 (file)
index 0000000..6615d49
Binary files /dev/null and b/textures/glow_reflect.tga differ
diff --git a/textures/golem.tga b/textures/golem.tga
new file mode 100644 (file)
index 0000000..83456ae
Binary files /dev/null and b/textures/golem.tga differ
diff --git a/textures/golem_gloss.tga b/textures/golem_gloss.tga
new file mode 100644 (file)
index 0000000..b6a110f
Binary files /dev/null and b/textures/golem_gloss.tga differ
diff --git a/textures/golem_glow.tga b/textures/golem_glow.tga
new file mode 100644 (file)
index 0000000..4ab4a36
Binary files /dev/null and b/textures/golem_glow.tga differ
diff --git a/textures/golem_norm.tga b/textures/golem_norm.tga
new file mode 100644 (file)
index 0000000..cbd6844
Binary files /dev/null and b/textures/golem_norm.tga differ
diff --git a/textures/golem_reflect.tga b/textures/golem_reflect.tga
new file mode 100644 (file)
index 0000000..fc26699
Binary files /dev/null and b/textures/golem_reflect.tga differ
diff --git a/textures/golem_shirt.tga b/textures/golem_shirt.tga
new file mode 100644 (file)
index 0000000..82c232a
Binary files /dev/null and b/textures/golem_shirt.tga differ
index 768ac8896785298506a16740b2f4eaae7f06893c..bcd9f66eb907a98c80a9b516be5e3c5bbfee1234 100644 (file)
Binary files a/textures/ignis.tga and b/textures/ignis.tga differ
index c9eee49600fb3e8a403aa773ab9675f1ca2efe6e..7bcace5b80249d7e4f6fe4d740ed6c6db8ef64ff 100644 (file)
Binary files a/textures/ignis_glow.tga and b/textures/ignis_glow.tga differ
index 768ac8896785298506a16740b2f4eaae7f06893c..bcd9f66eb907a98c80a9b516be5e3c5bbfee1234 100644 (file)
Binary files a/textures/ignisfullbright.tga and b/textures/ignisfullbright.tga differ
index a010bdf3e9e855f320b8703d909b0b104155eb79..7bcace5b80249d7e4f6fe4d740ed6c6db8ef64ff 100644 (file)
Binary files a/textures/ignisfullbright_glow.tga and b/textures/ignisfullbright_glow.tga differ
index 0a2f7fac551e42f2556242104537618e7191b8bd..f7fbf008171a2bc8a2139622aa8269cf783b4f19 100644 (file)
Binary files a/textures/ignisfullbright_shirt.tga and b/textures/ignisfullbright_shirt.tga differ
index 096b943f39d32f5c415f9d0e7759e9ec8e72469c..c95d1635a2b6206c8ba977b967f3ef4e5d0947d9 100644 (file)
Binary files a/textures/ignishead.tga and b/textures/ignishead.tga differ
index d23f7315bb107dc69a7c90f9ccbb045c08dea950..27aec27140a1fa4db45660b87cbff7695f79b072 100644 (file)
Binary files a/textures/ignishead_glow.tga and b/textures/ignishead_glow.tga differ
diff --git a/textures/ignisheadfb.tga b/textures/ignisheadfb.tga
new file mode 100644 (file)
index 0000000..5cb7c56
Binary files /dev/null and b/textures/ignisheadfb.tga differ
diff --git a/textures/ignisheadfb_gloss.tga b/textures/ignisheadfb_gloss.tga
new file mode 100644 (file)
index 0000000..37bf376
Binary files /dev/null and b/textures/ignisheadfb_gloss.tga differ
diff --git a/textures/ignisheadfb_glow.tga b/textures/ignisheadfb_glow.tga
new file mode 100644 (file)
index 0000000..27aec27
Binary files /dev/null and b/textures/ignisheadfb_glow.tga differ
diff --git a/textures/ignisheadfb_norm.tga b/textures/ignisheadfb_norm.tga
new file mode 100644 (file)
index 0000000..ec4b095
Binary files /dev/null and b/textures/ignisheadfb_norm.tga differ
diff --git a/textures/ignisheadfb_reflect.tga b/textures/ignisheadfb_reflect.tga
new file mode 100644 (file)
index 0000000..2f3fa94
Binary files /dev/null and b/textures/ignisheadfb_reflect.tga differ
diff --git a/textures/ignisheadfb_shirt.tga b/textures/ignisheadfb_shirt.tga
new file mode 100644 (file)
index 0000000..de4034f
Binary files /dev/null and b/textures/ignisheadfb_shirt.tga differ
diff --git a/textures/mage.tga b/textures/mage.tga
deleted file mode 100644 (file)
index 55aadba..0000000
Binary files a/textures/mage.tga and /dev/null differ
diff --git a/textures/mage_glow.tga b/textures/mage_glow.tga
deleted file mode 100644 (file)
index 8498c46..0000000
Binary files a/textures/mage_glow.tga and /dev/null differ
diff --git a/textures/mage_pants.tga b/textures/mage_pants.tga
deleted file mode 100644 (file)
index a3d2e13..0000000
Binary files a/textures/mage_pants.tga and /dev/null differ
diff --git a/textures/megaerebus.tga b/textures/megaerebus.tga
new file mode 100644 (file)
index 0000000..2ef8341
Binary files /dev/null and b/textures/megaerebus.tga differ
diff --git a/textures/megaerebus_gloss.tga b/textures/megaerebus_gloss.tga
new file mode 100644 (file)
index 0000000..5004a75
Binary files /dev/null and b/textures/megaerebus_gloss.tga differ
diff --git a/textures/megaerebus_glow.tga b/textures/megaerebus_glow.tga
new file mode 100644 (file)
index 0000000..a91959d
Binary files /dev/null and b/textures/megaerebus_glow.tga differ
diff --git a/textures/megaerebus_norm.tga b/textures/megaerebus_norm.tga
new file mode 100644 (file)
index 0000000..007228b
Binary files /dev/null and b/textures/megaerebus_norm.tga differ
diff --git a/textures/megaerebus_reflect.tga b/textures/megaerebus_reflect.tga
new file mode 100644 (file)
index 0000000..a99f2d6
Binary files /dev/null and b/textures/megaerebus_reflect.tga differ
diff --git a/textures/nanomage.tga b/textures/nanomage.tga
new file mode 100644 (file)
index 0000000..151ee1f
Binary files /dev/null and b/textures/nanomage.tga differ
diff --git a/textures/nanomage_gloss.tga b/textures/nanomage_gloss.tga
new file mode 100644 (file)
index 0000000..1a717a2
Binary files /dev/null and b/textures/nanomage_gloss.tga differ
diff --git a/textures/nanomage_glow.tga b/textures/nanomage_glow.tga
new file mode 100644 (file)
index 0000000..e380ce8
Binary files /dev/null and b/textures/nanomage_glow.tga differ
diff --git a/textures/nanomage_norm.tga b/textures/nanomage_norm.tga
new file mode 100644 (file)
index 0000000..06aae48
Binary files /dev/null and b/textures/nanomage_norm.tga differ
diff --git a/textures/nanomage_reflect.tga b/textures/nanomage_reflect.tga
new file mode 100644 (file)
index 0000000..0baed7e
Binary files /dev/null and b/textures/nanomage_reflect.tga differ
diff --git a/textures/nanomage_shirt.tga b/textures/nanomage_shirt.tga
new file mode 100644 (file)
index 0000000..1665ca5
Binary files /dev/null and b/textures/nanomage_shirt.tga differ
index ec01e22847e408a3db8cefe5abc7d45eca128010..f4f00c6f97409ba06d9f755436aa1208fa5642a2 100644 (file)
Binary files a/textures/nyxfullbright_glow.tga and b/textures/nyxfullbright_glow.tga differ
index 9aee3c18ac244bb629958d4c4e6d988606c2533a..2c54e978312bb292a913f4f738529fa8c73ad944 100644 (file)
Binary files a/textures/nyxfullbright_shirt.tga and b/textures/nyxfullbright_shirt.tga differ
index 53a46f3a807f13aa61450a36161a6b68b243ccb9..d1073950277c4a18a6a4fdfb68ed805be320ae3a 100644 (file)
Binary files a/textures/pyria_glow.tga and b/textures/pyria_glow.tga differ
index 62ca44604f4d9736719c222be9223426f44df80c..e8e6a47acc29e2b7fdec84e4ddf79d417782fb4e 100644 (file)
Binary files a/textures/pyria_shirt.tga and b/textures/pyria_shirt.tga differ
index ef6f686c6c15fc3250370ecee4e60a719a14906c..a4611f2859127d8a7a8e34d43a0bb7883bebc957 100644 (file)
Binary files a/textures/pyriafullbright_glow.tga and b/textures/pyriafullbright_glow.tga differ
index 62ca44604f4d9736719c222be9223426f44df80c..0e934d6464731b7c0804c414e167bcb9c66ae9a3 100644 (file)
Binary files a/textures/pyriafullbright_shirt.tga and b/textures/pyriafullbright_shirt.tga differ
index aa1f645787227e6815ae01062a259a267a4f4d8f..648d9007641d56f3590404cb7d8daf46ce3e76c0 100644 (file)
Binary files a/textures/shadowhead_shirt.tga and b/textures/shadowhead_shirt.tga differ
diff --git a/textures/shadowheadfb.tga b/textures/shadowheadfb.tga
new file mode 100644 (file)
index 0000000..29893e2
Binary files /dev/null and b/textures/shadowheadfb.tga differ
diff --git a/textures/shadowheadfb_gloss.tga b/textures/shadowheadfb_gloss.tga
new file mode 100644 (file)
index 0000000..2abb3f0
Binary files /dev/null and b/textures/shadowheadfb_gloss.tga differ
diff --git a/textures/shadowheadfb_glow.tga b/textures/shadowheadfb_glow.tga
new file mode 100644 (file)
index 0000000..1e69d82
Binary files /dev/null and b/textures/shadowheadfb_glow.tga differ
diff --git a/textures/shadowheadfb_norm.tga b/textures/shadowheadfb_norm.tga
new file mode 100644 (file)
index 0000000..19dd82c
Binary files /dev/null and b/textures/shadowheadfb_norm.tga differ
diff --git a/textures/shadowheadfb_reflect.tga b/textures/shadowheadfb_reflect.tga
new file mode 100644 (file)
index 0000000..f22a578
Binary files /dev/null and b/textures/shadowheadfb_reflect.tga differ
diff --git a/textures/shadowheadfb_shirt.tga b/textures/shadowheadfb_shirt.tga
new file mode 100644 (file)
index 0000000..f49ef02
Binary files /dev/null and b/textures/shadowheadfb_shirt.tga differ
diff --git a/textures/spider.tga b/textures/spider.tga
new file mode 100644 (file)
index 0000000..61215a8
Binary files /dev/null and b/textures/spider.tga differ
diff --git a/textures/spider_gloss.tga b/textures/spider_gloss.tga
new file mode 100644 (file)
index 0000000..cf5a79d
Binary files /dev/null and b/textures/spider_gloss.tga differ
diff --git a/textures/spider_glow.tga b/textures/spider_glow.tga
new file mode 100644 (file)
index 0000000..25cfcf3
Binary files /dev/null and b/textures/spider_glow.tga differ
diff --git a/textures/spider_norm.tga b/textures/spider_norm.tga
new file mode 100644 (file)
index 0000000..0438279
Binary files /dev/null and b/textures/spider_norm.tga differ
diff --git a/textures/spider_reflect.tga b/textures/spider_reflect.tga
new file mode 100644 (file)
index 0000000..6ebe874
Binary files /dev/null and b/textures/spider_reflect.tga differ
diff --git a/textures/spider_shirt.tga b/textures/spider_shirt.tga
new file mode 100644 (file)
index 0000000..c774996
Binary files /dev/null and b/textures/spider_shirt.tga differ
diff --git a/textures/spidertex.tga b/textures/spidertex.tga
deleted file mode 100644 (file)
index c1c40c0..0000000
Binary files a/textures/spidertex.tga and /dev/null differ
diff --git a/textures/spidertex_glow.tga b/textures/spidertex_glow.tga
deleted file mode 100644 (file)
index 8c7d3dc..0000000
Binary files a/textures/spidertex_glow.tga and /dev/null differ
diff --git a/textures/spidertex_pants.tga b/textures/spidertex_pants.tga
deleted file mode 100644 (file)
index 09263af..0000000
Binary files a/textures/spidertex_pants.tga and /dev/null differ
index ee222f67a02bb8c47d95945abce97afe51782947..aeef8deaf4af0275ca706a5bc2f6514e876c97a2 100644 (file)
Binary files a/textures/umbra_glow.tga and b/textures/umbra_glow.tga differ
index 8d04c364cc12551c79bb65cbf9d313e6150eeae1..2898c6917ed0b681d2d531337bbb9c457719d72d 100644 (file)
Binary files a/textures/umbra_shirt.tga and b/textures/umbra_shirt.tga differ
index 4924c2a988ecf3e60d0f3d0d6df80f5c003e069d..1d32c01e51f2b01e3819feb75d019c0fe58b4004 100644 (file)
Binary files a/textures/umbrafullbright_glow.tga and b/textures/umbrafullbright_glow.tga differ
index 8d04c364cc12551c79bb65cbf9d313e6150eeae1..7555385145b0c80e3d0769034d2efcc253d11baf 100644 (file)
Binary files a/textures/umbrafullbright_shirt.tga and b/textures/umbrafullbright_shirt.tga differ
diff --git a/textures/wyvern.tga b/textures/wyvern.tga
new file mode 100644 (file)
index 0000000..69bc82f
Binary files /dev/null and b/textures/wyvern.tga differ
diff --git a/textures/wyvern_gloss.tga b/textures/wyvern_gloss.tga
new file mode 100644 (file)
index 0000000..60cafa4
Binary files /dev/null and b/textures/wyvern_gloss.tga differ
diff --git a/textures/wyvern_norm.tga b/textures/wyvern_norm.tga
new file mode 100644 (file)
index 0000000..3f749b1
Binary files /dev/null and b/textures/wyvern_norm.tga differ
diff --git a/textures/wyvern_shirt.tga b/textures/wyvern_shirt.tga
new file mode 100644 (file)
index 0000000..5cdb81b
Binary files /dev/null and b/textures/wyvern_shirt.tga differ
diff --git a/weapons.cfg b/weapons.cfg
deleted file mode 100644 (file)
index 760337d..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// TODO: remove after 0.8.2. Default impulse commands for 0.8.1 servers
-alias weapon_blaster "impulse 230"
-alias weapon_shotgun "impulse 231"
-alias weapon_machinegun "impulse 232"
-alias weapon_mortar "impulse 233"
-alias weapon_minelayer "impulse 234"
-alias weapon_electro "impulse 235"
-alias weapon_crylink "impulse 236"
-alias weapon_vortex "impulse 237"
-alias weapon_hagar "impulse 238"
-alias weapon_devastator "impulse 239"
-alias weapon_porto "impulse 240"
-alias weapon_vaporizer "impulse 241"
-alias weapon_hook "impulse 242"
-alias weapon_hlac "impulse 243"
-alias weapon_tuba "impulse 244"
-alias weapon_rifle "impulse 245"
-alias weapon_fireball "impulse 246"
-alias weapon_seeker "impulse 247"
-alias weapon_shockwave "impulse 248"
-alias weapon_arc "impulse 249"
diff --git a/weapons.cfg.sh b/weapons.cfg.sh
deleted file mode 100755 (executable)
index f02d43c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-<qcsrc/server/w_all.qc perl -ne 'BEGIN{$i=230}/w_(.*?)\./ or+next;printf qq{alias weapon_%s "impulse %d"\n},$1,$i++;'
index 349a393c61a4150610685da12e6adfd66c926b57..7a0dec6890d33f858326018b9a0c59976989ce15 100644 (file)
@@ -386,8 +386,6 @@ alias weapon_group_7 "impulse 7"
 alias weapon_group_8 "impulse 8"
 alias weapon_group_9 "impulse 9"
 alias weapon_group_0 "impulse 14" // cycles the superweapons
-// TODO: remove after 0.8.2. Default impulse commands for 0.8.1 servers
-exec weapons.cfg
 
 cl_curl_enabled 1
 cl_curl_maxdownloads 3
@@ -730,7 +728,7 @@ set menu_updatecheck_getpacks 1 "get update packs from update server"
 seta cl_loddistance1 1024
 seta cl_loddistance2 3072
 seta cl_playerdetailreduction 4        "the higher, the less detailed player models are displayed (LOD)"
-seta cl_modeldetailreduction 1 "the higher, the less detailed certain map models are displayed (LOD)"
+seta cl_modeldetailreduction 1 "higher values will reduce the detail of non-player and non-weapon models (LOD)"
 
 seta cl_casings_maxcount 100 "maximum amount of shell casings (must be at least 1)"
 seta cl_gibs_maxcount 100 "maximum amount of gibs (must be at least 1)"