Commit graph

1076 commits

Author SHA1 Message Date
3efae50481 GS-Entbase: Make use of setmodelindex() instead of directly assigning
modelindex.
PMove: Hack to get stop gravity=0 from breaking runstandardplayerphysics if
CUSTOMPHYSICS is not defined
2021-06-08 09:17:35 +02:00
cc3a652119 GS-Entbase: Remove duplicate func_lod definition for QUAKED 2021-06-07 11:39:02 +02:00
b2c15d8fa4 build_editor.sh: Add check for env variable BUILD_CLEAN 2021-06-04 13:03:26 +02:00
0a5e254963 Menu-FN: Fix typo in strings.cpp, thanks to 'unsettled'! 2021-06-04 12:59:32 +02:00
af139751e0 setmodel(): verify if model exists in PATH and set it to an error one if
it's not present.
2021-06-01 12:40:53 +02:00
243c875a3f CBaseTrigger: Add support for Source Engine's FireUser/OnUser 1-4 trigger
inputs/outputs.
2021-05-29 10:52:47 +02:00
a4a40be8ae Menu-FN: Parse "minversion" command from liblist.gam.
Base: Document example liblist heavily.
2021-05-28 21:24:57 +02:00
407e2deb89 Menu-FN: Allow GAME_DIR to be overriden at a progs.src level 2021-05-28 19:35:41 +02:00
2082f1355a Menu-FN: Parse liblist.gam files instead of relying on manifests outright. 2021-05-28 10:26:42 +02:00
42960cda05 GS-Entbase: Initial func_pushable implementation 2021-05-27 09:44:01 +02:00
03b16ff905 Add Vox_Sentence_Broadcast() and Vox_Sentence_Single 2021-05-25 10:25:20 +02:00
4964ba3859 Shared: Give base_player class a constructor. 2021-05-25 08:35:22 +02:00
6c59c47c93 Menu-FN: Top/Bottom color sliders should only be visible when gameinfo says
nomodels is 0.
2021-05-25 08:34:35 +02:00
c821112d05 Menu-FN: Store top and bottomcolor in a global and recalculate the RGB values only
when the sliders are used.
2021-05-22 15:42:41 +02:00
4e20200f46 Menu-FN: Set platform defaults upon init, in case the engine does not exec
platform_defaults.cfg - however only crucial ones that should not be
touched anyway.
2021-05-22 15:21:28 +02:00
09528c2944 Add support for top/bottom color on players and viewmodels.
Fix func_breakable's sound shader from precaching non existing sounds.
2021-05-20 16:01:07 +02:00
2d17321554 Small fix to avoid spam in my inbox. 2021-05-17 20:15:49 +02:00
fbbcfd5d5f BotLib: Attempt to duck when we're between 512 and 1024 units 2021-05-16 23:08:41 +02:00
448b9bd20d Client: MakeStatic func_wall ents where we can do it on.
Shared: Bench PMove_Run using the engines builtin runstandardplayerphysics
2021-05-16 23:08:08 +02:00
c5cea7a162 Base: Weapons now track weight (for Weapons_SwitchBest)
BotLib: Add CreateObjective() method that can be overridden
2021-05-12 15:42:20 +02:00
eb3603335e GS-EntBase: func_ladder moved into shared/, will now avoid networking
entirely if it can be avoided.
2021-05-10 19:05:57 +02:00
728b261471 func_wall: Change MOVETYPE_NONE to MOVETYPE_PUSH 2021-05-10 14:52:41 +02:00
aef65b5749 Shared: Add frametime parameter to Animation_TimerUpdate(). 2021-05-10 12:22:12 +02:00
368e19f784 Spectator: Make sure we set spec_mode and spec_ent in the constructor to
some in-bound defaults. Fixes crash in HUD_Spectator()
2021-05-10 12:21:40 +02:00
1485544b91 Base: Get rid of g_eAttacker, which had been replaced by g_dmg_eAttacker.
Go over TraceAttack and make it combine multiple Damage_Apply calls into
one.
2021-05-10 11:33:31 +02:00
a3ecd78f17 CBaseMonster: support for spawnflag MSF_IGNOREPLAYER (64). 2021-05-10 08:14:10 +02:00
f4bbfe2e69 Revert commit 29e0e82f48 2021-05-09 22:02:19 +02:00
29e0e82f48 Server: Don't network RM_TRIGGER ents unless the developer cvar is 1. 2021-05-09 10:03:10 +02:00
e0a2f47f4d Dereference pSeat and pSeatLocal to __NULL__ instead, it's not like we ever
caught an error with the previous assignment anyway.
2021-05-08 23:06:11 +02:00
64745eb23c Overhaul prediction routines by boxing the generic client attributes away
from the game specific code. Add some helper macros... clean a whole bunch
up.
2021-05-08 17:44:16 +02:00
8e4ec974e0 Menu: Add gameinfo_steambg manifest setting, so we can support background
images for games designed for the SteamUI-era
2021-05-08 17:20:30 +02:00
76507b3e9e Client: Handle EFX_Shutdown() for OpenAL Environmental FX 2021-05-07 16:29:24 +02:00
31ae020cba Plugins: Add example plugins.txt config, add support for inline comments,
move searchpath to gamedir/plugins/
2021-05-07 14:15:08 +02:00
df2525aae6 GS-Entbase: Add BASEFL_CHANGED_VELOCITY and make sure velocity is networked
when required.
2021-04-27 17:45:13 +02:00
eaff488dc2 Client: Add an OSD for various EFX debug info when s_al_debug is enabled. 2021-04-27 12:53:21 +02:00
69caffe91c Fix typo where flReflectionsPan isn't getting set in the EFX loader. 2021-04-23 11:43:40 +02:00
96a748f189 Server: Flush 'skyname' serverinfo before setting the .bsp one, to prevent
it from bleeding to maps that don't define 'skyname' from old configs.
2021-04-22 12:14:56 +02:00
ead2ab6a6b EFX/env_sound: Add bound checks for legacy roomtypes. 2021-04-22 11:44:53 +02:00
f09f5833e0 Introduced the new OpenAL EFX handling subsystem. It's fully user-definable
via plain-text definitions and allows even legacy/GoldSrc content to take
advantage of it.
2021-04-22 11:33:48 +02:00
74f6d1a033 Client: Remove the last reference to g_iWorldInitialized 2021-04-22 01:59:37 +02:00
ce8731079f func_door(_rotating): Support for separate sound shaders handling opening
and closing of doors. See QUAKED comment in WorldSpawn for details.
2021-04-21 10:03:18 +02:00
d37c4d9d0a env_sound: Remove antiquated check for g_iWorldInitialized and change an
ifdef'd print to a dprint.
2021-04-20 19:54:11 +02:00
8ec9960264 Revert "Materials: Support for Opposing Force its SNOW identifer for surfaces in"
This reverts commit b0bc59a49c.
2021-04-19 11:30:50 +02:00
b0bc59a49c Materials: Support for Opposing Force its SNOW identifer for surfaces in
materials.txt
2021-04-19 11:23:30 +02:00
27b5b59f0d Server: Precache step_sand.left/right, add to footsteps.sndshd.
Fix some botlib waypointing strings.
2021-04-18 08:24:55 +02:00
da62296b9c Menu-FN: Added cvar menu_helptext_size, don't expect this one to be around
forever, it'll be used to detect quirks in freetype scaling.
2021-04-15 20:46:54 +02:00
07094f1cb4 CBaseMonster: Cancel out of AttackThink if m_eEnemy is not set 2021-04-10 23:25:06 +02:00
929a8f8630 GS-Entbase: Fix missing return on SendFlags in func_wall and func_illusionary 2021-04-10 23:06:59 +02:00
25f657532c Server: Limit hitbody sound in traceattacks to entities that can actually bleed, not just take damage 2021-04-10 22:49:30 +02:00
6da1f3c4fa GS-Entbase: massive optimisation - any func_wall and illusionary without a
targetname will not be networked and handled 100% client-side.
2021-04-10 09:35:06 +02:00
fca8620cba Server: Physics variables are now controlled via sv_ cvars like they
usually are in idTech, however we're now checking them every frame and
updating the networked infokeys in question
2021-04-06 12:22:32 +02:00
6e38bac564 Server: add support for more ways of loading HLBSP material definitions.
Explanation is provided under docs/hlmaterials, about the ways you can go
about this and which methods provided by the community are supported
2021-04-06 10:43:38 +02:00
44ab18793c Rearrange how we execute and time our player animation logic 2021-04-06 09:18:17 +02:00
94762dfa89 Merge branch 'master' of ssh://git.code.sf.net/p/freecs-1-5/code 2021-04-04 23:18:44 +02:00
dffc8f9ac5 GS-EntBase: RM_NORMAL and RM_SOLID no longer respect colormod and alpha overrides. Maps like de_railstation will
now look proper.
2021-04-04 23:17:35 +02:00
eeda69f6d2 Client: Damage indicators now use the spriteframe() builtin for precaches 2021-04-02 08:35:54 +02:00
e5ba0406fd Added pSeatLocal, which is like pSeat but games no longer break if upstream
Nuclide expects new fields. You might have to migrate some fields over.
2021-03-31 13:40:27 +02:00
14e3690cd4 Create platform/masters.lst and change it so menu-fn doesn't change the
sv_public cvar all the time.
2021-03-31 11:54:41 +02:00
9319e63619 View_AddEvent: Add hack to cache and verify we're playing the event only on our frame of choice 2021-03-30 07:30:33 +02:00
b043b57ed5 Get rid of the View_EjectShell* functions I added last week and replace it
with the much cooler View_AddEvent() which allows for much more.
2021-03-29 21:52:53 +02:00
9c4487b2e9 Weapons_AddItem: Don't assign bitflag to inventory if pickup() returns 0 2021-03-28 12:16:31 +02:00
075033e93c func_breakable: fix typo in sound shader name 2021-03-27 09:15:02 +01:00
5b07ee41a9 Add damage_bullet sound shader definitions. Those are played when a bullet
successfully hits a hurtable body.
2021-03-27 09:09:10 +01:00
08a4080c66 Some minor spectate input code cleanup, make it so that we cache the last
valid player position so we don't get warped to [0,0,0] when a player being
tracked dies.
2021-03-27 07:50:40 +01:00
ab355d6a52 Add drawrect(), a simple helper for drawing rectangles with specified
thickness
2021-03-27 07:49:13 +01:00
2c7f540787 botlib: add USER linkflag. When a bot passes that link, he'll USE the
closest func_button nearby.
2021-03-27 07:48:46 +01:00
cec4872994 Add modelevent_shell sound shader definitions, so mods can set shell eject
sounds.
2021-03-27 07:47:56 +01:00
95739c7a20 Basic spectator implementation for all games. 2021-03-24 07:50:30 +01:00
48d1b1ad0d Client: View_EjectShell is now replaced by three different variations. 2021-03-17 14:34:26 +01:00
69b087c7e4 Client: add View_EjectShell(); and integrate it. 2021-03-17 13:24:00 +01:00
f553a79250 Util_FixModel: Add another hack to fix hostages spawning on cs_747. 2021-03-17 11:49:41 +01:00
3d1041fcf6 Added ClientGame callbacks for PreDraw and PostDraw calls. 2021-03-17 06:24:38 +01:00
00141d5ab0 Add View_PreDraw() and move View_Stairsmooth() into that. 2021-03-17 06:12:50 +01:00
0207b52d0f func_breakable: Add indepth explanation of SF_TRIGGER in the QUAKED comment 2021-03-13 04:57:06 +01:00
b49815872c Sound Shaders: Exit out when we attempt to play a shader that hasn't been
precached.
2021-03-13 04:24:53 +01:00
923f0f424b func_door_rotating: Don't touch door when it's inbetween two positions.
FIXME: How does HL handle this? Test that out.
2021-03-13 04:24:16 +01:00
47149d46f0 func_door_rotating: Handle possible NAN on calculating an avelocity, this
fixes the door from freezing in rare situations
2021-03-12 02:49:26 +01:00
d58e653e08 func_train: Make sure we trigger PathDone() BEFRE switching to the new node
and remove the targetname check for PC_WAIT/TRAIN_WAIT spawnflags
2021-03-12 02:48:08 +01:00
0645b98036 vmap script: Add check for the env vars VMAP_NOVIS/BSP/LIGHT 2021-03-09 14:25:59 +01:00
79382f833e Get rid of the src/worldspawn submodule.
It shouldn't be referenced that way.
2021-03-09 11:59:17 +01:00
46f9e1be0f Client: Add force parameter to Sky_Update() and make sure Sky_Update() is
called upon CSQC_RendererRestarted.
2021-03-08 01:45:15 +01:00
f13754a8c3 CBaseNPC: Add ::StartleAllies() and ::TalkPanic() methods. Which handle
behaviour related to the MONSTER_FEAR flag.
2021-03-06 17:43:08 +01:00
7dcebd140d Menu-FN: Add proper caching (non-CVAR based) for pkgfile and introvideo
manifest info. This avoids the headache of engine threading getting in the
way and messing up package manager and what have you on ~some~ systems
2021-03-06 00:23:59 +01:00
fc75a1be11 Base, Half-Life, Counter-Strike, Opposing Force and Scientist Hunt have
now been reworked to have fully networked ammo that's also fully affected
by rollback netcode. Big diff, mods WILL break. Beware.
2021-02-28 02:31:27 +01:00
71f7e024c9 Server: Add serverinfo set for skyname into worldspawn... I must have been on drugs or something 2021-02-23 05:55:57 +01:00
d3cfedaab2 GS-Entbase: Fix hiccup that happens with infodecal entities, we now make
sure to only network them when they are targetname'd.
2021-02-22 21:56:34 +01:00
ef88557fbf func_recharge: Add depletion logic to the entity, same as func_healthcharger 2021-02-22 18:05:34 +01:00
099b516236 func_healthcharger: Add the depletion logic to the entity 2021-02-22 18:05:11 +01:00
c26d4d0c45 Client/Server: Add server controllable fogparms using serverinfo 2021-02-22 17:49:55 +01:00
20a67bf418 Client/Server: Make the server control the sky. 2021-02-22 17:29:34 +01:00
110ce2b607 GS-EntBase: Add func_detail_illusionary definition.
Half-Life: Add sound/trail for Egon, WIP
2021-02-17 16:21:17 +01:00
e1df585677 Menu-FN: Check TCP_GetState() before allowing a message to be sent to chatrooms. 2021-02-17 13:28:26 +01:00
5e181c1128 Menu-FN: Spray-logo precaching optimisation 2021-02-17 11:59:38 +01:00
adc951dd96 Menu-FN: Strip file extension from player model lookup, that avoids some
headaches when figuring out what model we're supposed to be using
2021-02-17 11:34:55 +01:00
82a501c0be Menu-FN: add 'nosprays' gameinfo setting as a companion to the 'nomodels'
setting, as some mods may choose not to support them
2021-02-17 11:28:09 +01:00
40bbca0dc4 Menu-FN: Add support for gameinfo_introvideo, check for gameinfo_pkgfile
to determine if a file exists before force-opening the update page.
2021-02-17 11:17:28 +01:00
a902b702ae Small building adjustment to the mod progs.src and Makefiles.
Changed some client progs function names for readability, more to come
2021-02-17 00:44:40 +01:00
89be1ea628 PMove: Fixed water movement code a bit so we don't sink while moving 2021-02-16 11:02:39 +01:00
ce2185ff02 Plugins: Added a callback for when a client is done connecting to a server 2021-02-14 21:05:10 +01:00
d5ae0c8dfd func_train: Fix the moving sound from not stopping on certain variations
of this entity
2021-02-14 00:21:35 +01:00
8d262c9eb2 Counter-Strike: Make the text-menu use the new Textmenu_Toggle call, so
players can exit e.g. the team choice menu.
2021-02-14 00:20:32 +01:00
086e8e5a37 Server: We forgot to call Vote_Init(), which clears a bunch of serverinfo keys. 2021-02-13 23:08:58 +01:00
0fe863aabc Server: Add water stepping, wading and swimming sounds + script definitions 2021-02-13 23:06:06 +01:00
2834b49f12 env_sprite: Turns out the default scale is not 0.25f. 2021-02-13 10:12:17 +01:00
2449fa492e Half-Life: Fix viewmodel still drawing when dead, player moving 2021-02-13 10:07:52 +01:00
97f90ae72c Scientist Hunt: Clean up w_cannon a little 2021-02-13 10:06:34 +01:00
02efa21e3d Move game-specific sources into their respective mod-dirs. This was planned
for a while and was inevitable. Latest fteqcc required that fixes a limit
with paths. Also added src/server/mapcycle.qc
2021-02-08 13:35:15 +01:00
Marco Hladik
550203d019 rename src/mk_mapdef.sh to make_mapdef.sh 2021-02-07 09:13:23 +01:00
8085ae6db8 Plugins: Make p_ircbridge join the mod's preferred channel when specified in the manifest 2021-02-03 09:32:15 +01:00
42002128a3 Client: Add input fixes to make the game controllable with a SEGA Saturn
controller. Added cvar in_saturnmode 0/1
2021-01-30 01:45:28 +01:00
1952c05890 materials.txt support: Make sure we convert the material identifer to upper-case. 2021-01-25 15:01:26 +01:00
aeae39fc9a Materials_FixName: Fix typo 2021-01-25 12:09:43 +01:00
baaa68069d Plugins: Fixed InitEnts not being called, added another example plugin (Server Banner) 2021-01-24 20:26:10 +01:00
bb0c78cb0a Plugins: Added IRC bridge plugin for the server as another example 2021-01-24 10:13:11 +01:00
31cf4e5b10 Client: Fix double free properly for Vox_Shutdown 2021-01-24 03:03:36 +01:00
4e7829de53 Plugin-VoxAnnouncer: Include events.h to properly choose the vox-say event id 2021-01-24 02:42:37 +01:00
70268440ee games_updatesavailable: check for -1 to avoid bad pointer errors 2021-01-24 01:54:14 +01:00
bf8f8e24cb game_updateinstallcount: Always return 1 when no packagenames are given 2021-01-24 00:13:01 +01:00
085607e022 Menu-FN: Show the updater only when we've got 0/X packages installed for
the current game.
2021-01-24 00:11:08 +01:00
9cf5cc016b env_laser: update ParentUpdate() to check for the right attributes 2021-01-23 22:08:17 +01:00
ab1e5408df func_button: Unstuck the 'health' trigger method. 2021-01-23 22:07:41 +01:00
8b013035e3 trigger_camera: Support for 'wait' to be -1. 2021-01-23 21:20:19 +01:00
cc240fefb2 Menu-FN: Small fix to avoid an infinite loop of menu_restarts in case
the cvars don't get set fast enough, somehow
2021-01-23 15:24:49 +01:00
dfbb153946 Menu-FN: get rid of autocvar_menu_installedpackages 2021-01-23 14:57:21 +01:00
178f988167 Menu-FN: Change the way we install custom game data. It should be way more
stable and consistent now.
2021-01-23 14:54:31 +01:00
dbb53d151a Let the menu progs know when we're actually in a single/multi-player game.
It seems that the maxclients serverinfo key lies to the client, so we work
around that by setting our own
2021-01-23 12:56:22 +01:00
9f13450b01 Menu-FN: Add the option to disconnect a multiplayer game from the menu. 2021-01-22 22:57:26 +01:00
c17515fe98 Menu-FN: List packages in the updater that are listed in pkgname, not just
any data/addon package. Also commented some entry-points.
2021-01-22 22:37:06 +01:00
4cf229d946 CBaseEntity: Don't send origin/size info when 0 upon entering PVS 2021-01-22 16:05:40 +01:00
93728d283c Added Materials_FixName() for preparing materials.txt lookups 2021-01-22 15:54:06 +01:00
5ff673cbae func_train: Fix TELEPORT spawn-flag from the path-corner. Previously we
acted the next frame, but this causes the move action to be made nil.
2021-01-22 12:07:42 +01:00
4b5125d97f CBaseEntity: Optimisation in SendEntity regarding predictable defaults. 2021-01-21 01:29:26 +01:00
297741eac1 func_breakable: Force angles to be 0. Map editors generally don't support setting angles on brush entities anyway. 2021-01-19 11:17:47 +01:00
f8606ae7e7 Extend impacts to the full spectrum of material definitions, sound shaders
and all. Still needs patch for Counter-Strike.
2021-01-19 10:37:28 +01:00
7e2aab4cad func_rotating: Work around Q1 BSP bug in which rotating brush entities may call blocked() on ents they couldn't possibly be touching 2021-01-19 10:35:18 +01:00
544da0ef15 env_shake: Fixed parameters being received wrong on the client-side. Stupid oversight. 2021-01-19 08:12:25 +01:00
6a48c18171 BotLib: Add support for the AIM linkflag, to control when a bot is forced
to look ahead to the current waypoint node.
2021-01-16 17:34:04 +01:00
1f78814d1e Menu: Only list maps in the Create Game maplist that belong to the current gamedir, replicating WON behaviour 2021-01-15 01:04:51 +01:00
75adc63665 Menu: Blacklist any test_* prefixed maps in the Create game menu 2021-01-14 15:41:01 +01:00
3662565879 Unscrew player animation and fix a bug involving botlib overriding
important playermethods on bot-clients with CBaseEntity ones.
2021-01-06 15:54:17 +01:00
ae6f3ebdfb Lots more documentation in server/*.c, minor fixes for some mod guns like
They Hunger, Gearbox, SciHunt and Poke646. Also cvar support for 'pausable'
2021-01-06 13:58:37 +01:00
ae70642f14 Server: Disallow the 'pause' command to any game with more than 1 client-slot. 2021-01-06 12:38:35 +01:00
507a10eec5 Client: Allow game-specific model event overrides. 2021-01-05 15:51:49 +01:00
6c3814a2b1 Routing: Added ability to nudge existing waypoints along an axis as well as
an option to move the nearest waypoint to the player's position.
2021-01-03 12:52:51 +01:00
6dc054f94b Client: Fixed a typo in the waypoint editor, added color coding... removed
some redundant newlines in the text
2021-01-02 21:52:35 +01:00
8933452364 BotLib: Add a visual line indicator for the link you'll be making. 2021-01-02 21:31:56 +01:00
523b1df3de Client: Move text-menus into their own titles[] channel, so that they don't
overwrite other texts being printed and vice versa.
2021-01-02 21:22:56 +01:00
6638e7324d BotLib: Improve the rendering of waypoints and radii, including highlights
for the nearest node.
2021-01-02 18:52:09 +01:00
58be8e2170 BotLib/Nodes: Add support for variable link radius. If you need to fill
your old waypoint data... try 'sv way radiushack'. Sorry!
2021-01-02 11:17:14 +01:00
829757d415 Way-Editor: Move the 'Remove ALL' option down a bit to help mitigate accidental presses a bit more
Might even want to put it behind a confirmation window later.
2020-12-31 05:10:07 +01:00
dd741c1c39 Menu: Added fallback mode for missing btns_main.bmp and header_*.bmp files,
also support for basic Quake III Arena player model selection if you happen
to play with that (like Xylemon will!)
2020-12-30 17:19:21 +01:00
53ed1962eb BotLib/Way/Routing: Go over and integrate the link-flags stuff properly,
as fixed in a recent FTE commit
2020-12-29 09:10:21 +01:00
1dd2547fe2 Client: Added improvements to the waypoint-editor, more options, features... etc. 2020-12-29 07:17:41 +01:00
d1b1431b8a BotLib: Bots ought to switch weapons now when they pick an item up!
Also moved the way_menu cmd into its own file...
2020-12-28 19:59:37 +01:00
f52638c715 Half-Life: Auto-reload for the few weapons it applies for (when empty) 2020-12-28 19:57:47 +01:00
5edcdb892c BotLib: My last commit before weekend hits. More pathfinding work, added
a temporary interface for in-game waypointing... Bots will combat you too.
2020-12-26 07:27:34 +01:00
c76cdc5903 BotLib: Added basic waypointing and pathfinding system. They'll go about
their business but not do much else just yet.
2020-12-23 07:53:43 +01:00
86daed3eec Added a stripped down base game tree, which should pose as a decent
entry-point for starters into the SDK
2020-12-22 01:56:44 +01:00
d04d2a83ef Nodes: Only bother saving a node .way file when we've got nodes to dump. 2020-12-22 01:15:22 +01:00
3d700a4fd7 sky_camera: Fix not taking different camera position vectors into account,
this broke by accident a few commits ago. Apologies.
2020-12-20 02:19:52 +01:00
b7ebea2401 func_door_rotating: Document entity via QUAKED comment 2020-12-17 23:07:36 +01:00
0e46b76042 Client: Tag viewmodels so they don't cast shadows when dynamic lights are around 2020-12-13 04:46:04 +01:00
daaf6a1974 Client: Move some skyroom setup routines into their own function, add
incomplete prop_door_rotating (needs engine fixes)
2020-12-13 03:50:35 +01:00
6583a42a87 Change magic numbers of BSP version checks to macro defines. 2020-12-13 00:56:11 +01:00
74192c2f78 Implement basic EV_SHAKE event & adding 'shakes' key multiplier to sound
shaders. Client-side sound shaders will get proper shake duration matching
the sound sample length too. Fancy stuff you can try.
2020-12-12 06:24:48 +01:00
f38bf28b9e Go over the default.cfg's of all the example games. Make it so that
Skill_GetValue() requires a default value set.
2020-12-12 01:54:00 +01:00
a95440b9f9 env_projectedtexture: Add custom pattern support and show it off in test_dlights 2020-12-11 21:18:30 +01:00
fbc2aaeeec light: Make sure we're overriding patterns if switch_style is above 0 and
below 11. You also want to go update worldspawn/vmap...
2020-12-09 16:47:43 +01:00
c130ab2c38 PMove: Added macros to let mods override a bunch of physics variables so
they keep their fingers out of pmove.c
2020-12-08 12:00:10 +01:00
3195b4c196 light: Improved entity documentation, deprecated spawnflags & 1 for any non
idTech 2 BSP files. Use start_active instead.
2020-12-07 18:16:45 +01:00
00a5a55202 dynamic_light: Added custom pattern support, which is custom to Nuclide. 2020-12-07 15:59:22 +01:00
4688742264 func_detail: Add QUAKED comment. 2020-12-03 23:09:15 +01:00
23c5d14420 Added func_monitor and point_camera. Along with a test_monitor map to
showcases rendertargets working.
2020-12-01 20:43:25 +01:00
2fa4fd159c Move CLASSEXPORT from server/defs.h to shared/defs.h 2020-12-01 12:32:42 +01:00
31099eb2e9 prop_static: Added QUAKED comment definitions for WorldSpawn/Radiant. 2020-11-30 20:21:20 +01:00
172a4476f9 Platform: Add test_hdr level to show off iris adaption. 2020-11-30 12:32:41 +01:00
d2c7885842 GS-Entbase: Added func_group.cpp, for QUAKEED comment sake 2020-11-30 01:34:54 +01:00
1d02dccbb5 trigger_camera: Misc improvements, plus added test map. 2020-11-28 22:52:56 +01:00
e0f5124cce func_button: Add remaining Outputs: OnDamaged, OnIn, OnOut, OnUseLocked 2020-11-28 13:58:51 +01:00
0c7d5e7512 env_projectedtexture: Add support for FarZ, NearZ and updated QUAKED comment 2020-11-28 12:31:01 +01:00
b3b2d14e27 Remove obsolete info_particle_system.cpp from gs-entbase/client/ 2020-11-28 12:12:48 +01:00
82f1d841cb env_projectedtexture: Get rid of 'start_active', as this entity uses
spawnflag bit 1 to assess the initial state.
2020-11-27 22:44:11 +01:00
1429abc223 env_projectedtexture: Add 'SpotlightTexture' Input. 2020-11-27 22:30:29 +01:00
ac607637e5 test_dlights: Add shadow flag to the prop_dynamic. 2020-11-27 22:04:16 +01:00
1a3dca71ec env_projectedtexture: Initial implementation, updated map test_dlights. 2020-11-27 19:23:21 +01:00
2cef5d76ec light: Make sure we can't start a light dark when it has no targetname.
This is to work around a bug present in a custom map that was suggested
that had an untriggerable light with no style - thus turning all lights off
2020-11-27 17:52:51 +01:00
3187bc0ffa light_dynamic: Use float's instead of coords for networking angles. 2020-11-27 17:50:11 +01:00
c021be95b7 Merge server/light_dynamic.cpp and client/light_dynamic.cpp into a single
shared/light_dynamic.cpp
2020-11-27 13:53:54 +01:00
5eae768a9b light_dynamic: Add a 'start_active' key. Source games have no way to tell
dlights to start disabled for some odd reason.
2020-11-27 13:12:08 +01:00
8caa8d171f info_particle_system: Make sure to respect the 'start_active' key. 2020-11-27 03:10:59 +01:00
b6f9242752 info_particle_system: Initial implementation, along with example map test_particles. 2020-11-27 03:05:21 +01:00
2418480af4 func_button: Add support for the 'OnPressed' output. 2020-11-27 03:03:39 +01:00
a6b192a2c7 Update doc file for building the source tree, as that's now changed. 2020-11-25 13:12:39 +01:00
6073f73979 Working around a compiler bug in fteqcc (presumably) where for some reason
it allows me to override some fields inside a class, but not PlayerUse().
2020-11-25 10:32:42 +01:00
92fa031b28 env_sun: Fix r_shadows_throwdirection angle calculation. 2020-11-25 00:07:23 +01:00
a8ee403f81 Change launch scripts for engine/tools to resolve symbolic links properly 2020-11-24 17:21:34 +01:00
2c1bd865c0 GS-Entbase: Moving client/baseentity and server/baseentity into a shared
file... Optimisations forthcoming
2020-11-24 13:55:57 +01:00
8ab685b7b2 ambient_generic: Document and catch some unimplemented attributes. 2020-11-24 12:47:39 +01:00
bc753f944e light: Document some known fields the compiler likes to leave behind. 2020-11-24 12:47:08 +01:00
fea005ba96 GS-Entbase: Add some QUAKED comments for the base spawn point entities,
info_player_start, info_player_deathmatch and info_player_coop.
2020-11-24 12:29:29 +01:00
31c7354dda env_sun: Make pitch/angles compatible with Source's way of handling them. 2020-11-24 02:24:30 +01:00
ce2b16bb2e scripted_sequence: Make sure m_iMState is reset when a sequence overtakes
an entity.
2020-11-24 00:51:51 +01:00
1bcaba26a3 Menu-FN: Add support for gfx/shell/kb_def.lst and the menu option to reset
binds to mod defaults.
2020-11-23 22:33:55 +01:00
a9d87aa590 Server: Minor scripted_sequence pathfinding improvements, add support
for m_flChaseSpeed for CBaseMonster...
2020-11-23 21:39:40 +01:00
9245ae809b Platform: Added example model into test_dlights. 2020-11-21 16:07:35 +01:00
11d52abec3 Server: Disable 'best-weapon' switch when sv_forceweapondraw is 1. 2020-11-19 10:46:09 +01:00
df1388f9fc Server: Add sv_forceweapondraw 0/1, which lets mods override whether or not
the first weapon the player picks up will be deployed automatically.
2020-11-18 13:17:43 +01:00
ba6824a602 Client: Added two developer commands, dev_measure and dev_sunpos. 2020-11-17 11:21:13 +01:00
3658719b3f CBaseEntity: Add 'ignorepvs' key, as sometimes you might want it for skyrooms. 2020-11-17 10:25:21 +01:00
ebc287f2e8 Make sure 'valve' compiles without GS_RENDERFX. 2020-11-13 11:17:42 +01:00
1cbd41f66b Documentation: Comment some of the prediction code more, as some may be
reading it as we speak
2020-11-08 04:45:52 +01:00
afa9f0719c Update cstrike.fmf and mk_mapdef.sh 2020-11-07 10:41:27 +01:00
678d7bf124 Plugins: Change Plugin_ParseClientCommand to manipulate command strings
and passing them onto the next plugin. Also added a chatfilter plugin!
2020-11-06 13:04:22 +01:00
2618d47ff3 GS-Entbase: More Input/Output logic for the following ents:
trigger_changelevel, trigger_hurt, trigger_look, trigger_multiple &
trigger_once. Plus a fix for func_guntarget
2020-11-01 05:25:43 +01:00
b48ce4d2ce trigger_autosave: Query GetMaster() before triggering 2020-10-31 14:37:05 +01:00
422741a295 GS-Entbase: Add Input/Output methods for func_conveyor, func_guntarget,
func_wall_toggle
2020-10-31 14:32:23 +01:00
69fa528822 Server: Move footstep precaches into Footsteps_Init 2020-10-30 13:29:37 +01:00
97d19c1b37 Add shared/include.src, so we touch gamename/include.src less for global
changes.
2020-10-30 12:21:00 +01:00
c100554dcc Gamerules: Make sure player is always passed as type 'base_player' via
parameters instead of just 'entity'.
2020-10-30 11:28:59 +01:00
6502eeddc0 Server: Added sv_levelexec, which when enabled reads a map-specific config
on boot.
2020-10-28 08:29:24 +01:00
624a68bf7f Menu-FN: Use the new search_begin flag on the playermodel search paths.
So we can stop looking for just .bmp files. Requires latest FTE.
2020-10-27 05:02:41 +01:00
a536f7b6cc light_dynamic: Respect the right radius key 2020-10-27 04:49:38 +01:00
90478acec4 Menu-FN: Make the Internet server browser refresh more useful 2020-10-27 00:21:53 +01:00
c8db45bc67 Fix a typo... 2020-10-25 13:01:43 +01:00
2601ebce06 trigger_multiple: Add support for the flag that allows pushables to trigger 2020-10-25 12:50:52 +01:00
3adbedb5aa Fill up the entity QER/Radiant QUAKED comments with first-appearance info. 2020-10-25 12:38:41 +01:00
4aa8a70063 CBaseVehicle: Added vehicleflags, make sure each vehicle has the ability
to suppress movement and/or fire while the 'driver' is using the vehicle.
2020-10-25 12:06:22 +01:00
8cbbeaae24 Platform: Add gl_stipplealpha support to models. 2020-10-25 11:50:15 +01:00
4962f82f89 Move entity-update/event definitions for game-specific cases out of root
src/shared.
2020-10-24 13:11:02 +02:00
cce2429308 Added gl_stipplealpha for fun, as well as rm_unlit_additive and rm_unlit_texture
to override the expected behaviour of rendering additive/texture rendermode
surfaces fullbright.
2020-10-24 07:04:30 +02:00
2daf3da59f env_sprite: Change default scale to 0.25, make sure that when no targetname
is set, we force-enable the sprite because toggles wouldn't work.
2020-10-24 06:36:08 +02:00
ed4f972a19 Fix some typos. 2020-10-24 05:24:40 +02:00
24a753edce env_sprite: Fix that sprites marked as PLAYONCE may be networked in some
semi-visible form
2020-10-24 05:02:14 +02:00
00a8ee2a00 env_hudhint: Initial basic implementation, plus a way for the game-logic to send hints. 2020-10-24 03:32:34 +02:00
b31ab5761a Simplified some rendering code for CBaseEntity/glows 2020-10-24 02:58:19 +02:00
d39fb1cdc2 env_glow: Tweak the rendering a little bit. This should make them more
visible and more like as seen in other games.
2020-10-24 02:38:19 +02:00
a67c50c202 Decals: Implemented client-side PVS culling optimisation 2020-10-23 20:41:02 +02:00
689ffe14bc Small cleanup in some client-side gs-entbase code. 2020-10-23 20:13:27 +02:00
0cfa4df68a Decals: Make sure tempdecal materials are recached upon vid_reload 2020-10-23 20:12:43 +02:00
0f50c46623 Platform: Added blood decal for non-Q3BSP.
GS-Entbase: Add mitigations for possible unwanted adddecal() calls, remove decals upon CSQC_Shutdown()
2020-10-23 05:15:59 +02:00
d9dababe65 Moved all possibly game-specific flags (such as FL_FLASHLIGHT) into gflags,
this affects mods. Please check the diff to see what you'll need to adjust.
2020-10-22 16:30:37 +02:00
065dd926cd light_dynamic: Override ParentUpdate() to make sure we update origin/angles
over the network.
2020-10-22 03:48:15 +02:00
cb57a95d4b light_dynamic: Fixed server-side PVS culling. 2020-10-22 03:44:10 +02:00
d0342b128c light_dynamic: Initial implementation. Q3BSP maps can use 'dynamic_light'
to avoid confusing the compiler (...).
Renamed ReadEntity() to ReceiveEntity().
2020-10-22 02:23:05 +02:00
6038c04591 Fix preset lightstyles for Q3BSP, added examples to test_lightstyles. 2020-10-18 15:19:56 +02:00
2afba74a86 Added test_areaportal, to debug openportal() 2020-10-18 01:10:21 +02:00
770426e82c GS-Entbase: More work done on CBasePhysics 2020-10-17 21:42:32 +02:00
2b1e23a2fe Misc: Added test_lightstyles to platform's base, fixed lightmapped.glsl
not calculating styles when r_deluxemapping is 0, fixed patterns being
possibly overriden upon init.
2020-10-17 17:26:58 +02:00
e803ddbceb GS-Entbase: Expose Base* class headers at the global scope. 2020-10-17 16:30:36 +02:00
88f490a1c5 monstermaker: Make it so monsters inherit angles. 2020-10-17 15:29:35 +02:00
0bb06af381 Client: Move Vox specific code into vox.c and out of sound.c, add Shutdown entry 2020-10-17 13:17:34 +02:00
f4ade524fe Client: Fixed some warnings and some added some paranoid free() calls. 2020-10-16 02:26:45 +02:00
074e1cc120 Client/Platform: Added some base impact decal examples for non HL BSP...
this will change a bit more to include more material types. Patience!
2020-10-15 19:02:55 +02:00
d0231eee50 Platform: Added per-wall kernel dithering, cvar gl_kdither 0/1 2020-10-08 12:03:52 +02:00
f3668f8335 Menu: Fixed CModList from lazily skipping over the current mod entry, resulting in some rough list display. 2020-10-08 02:28:26 +02:00
4bde3bbfb6 Menu: Fix music not stopping when joining a server. 2020-10-07 23:21:34 +02:00
7902ae22d5 Menu: Filter servers by gamedir. Clients shouldn't attempt to connect to mods that way. 2020-10-07 23:21:03 +02:00
b1742afb97 Menu: Play intro based on 'gameinfo_gamedir', not 'game' 2020-10-07 11:38:32 +02:00
4208bd8c9a Server: added server command trigger_ent 2020-10-06 14:42:46 +02:00
4e9be1a7bc Makefile: Apparently a target can't be called 'plugins', so we'll rename it to 'plugs'. Neat. 2020-10-06 14:34:26 +02:00
5810da8069 Menu: Switched mod switching to be fully manifest oriented, fixed menu music playback. 2020-10-06 14:27:44 +02:00
9f30a2b897 Menu: Add blacklist for maps in the Create Server menu. 2020-10-02 11:41:50 +02:00
1a0193ad3a Menu: Add input redirection verification in case we've forcefully changed menu input modes. 2020-09-29 14:24:21 +02:00
8fab5921a0 VGUILib: Fixed draw/input flag-check inconsistency in CUIMenuButton 2020-09-29 13:50:19 +02:00
57cc661c86 Menu/Client/Server: Background map support for menus. This should be handled differently in that SV_ShouldPause ought to control Singleplayer as well. Engine hardcodes suck 2020-09-27 14:25:10 +02:00
54f0c5d24c Half-Life: Add I/O ability to ITEM_LONGJUMP 2020-09-26 12:46:40 +02:00
a9853f79cf decal:predraw: return PREDRAW_NEXT when no shader is set. 2020-09-26 12:42:32 +02:00
dbd5b5d566 Menu: Committed example Menu-VGUI... it's not ready for use but a good widget showcase nonetheless. 2020-09-24 22:31:30 +02:00
70868ddd84 env_sun: fix path of the flare textures. 2020-09-24 17:46:29 +02:00
365ac0a5fa Decals: Avoid attempting to cache and display decals with no yet-defined texture. 2020-09-24 17:43:35 +02:00
340db972be Client: Move CSQC_Ent_Update into entry.c as it's an entry function. Move Entities_ParseLump into entities.c 2020-09-24 10:19:38 +02:00
a0a593ef6b Menu: Unbind all keys for a given command when two were defined. 2020-09-21 18:52:00 +02:00
8bde44b01c CBaseTrigger: Merge UseTargets and UseTargets_Delay... to be continued. 2020-09-21 18:10:31 +02:00
5dcb79e30c Documented/commented my I/O system changes in CBaseTrigger/CBaseOutput and cleaned some things up. 2020-09-20 15:50:45 +02:00
dc47146e99 CBaseTrigger: Added CBaseOutput, in preparation to support Source styled input/output mechanisms 2020-09-20 10:43:13 +02:00
9f95fd11c2 func_wall: Clean up and make sure .frame is reset upon Respawn() 2020-09-18 15:00:24 +02:00
f5283dd94f CBaseTrigger: move all instances where we define the SpawnKey 'delay' in others ents into the parent class. 2020-09-18 14:55:13 +02:00
5131f19c04 Fix client-side sentences filehandler from not being closed, other shenanigans. 2020-09-18 09:35:59 +02:00
809966ab7b func_brush: Initial implementation. Source inspired entity. 2020-09-18 00:14:05 +02:00
fd6fe5447b trigger_multiple: Stop checking if what we touch is of MOVETYPE_WALK 2020-09-13 19:15:06 +02:00
868b9d1b04 Fix some misc warnings the new fteqcc brought up, along with some other tiny changes. 2020-09-13 19:14:28 +02:00
ac31455dd5 Nodes: Add fancy debug textures for nodes and sequences. 2020-09-13 19:11:41 +02:00
97ad8c92e7 CBaseMonster: Improve pathfinding by skipping utterly unnecessary nodes. 2020-09-13 18:35:12 +02:00
80b1a892a0 CBaseTrigger: SOLID_BSPTRIGGER has gotten stable. Use that as the default. 2020-09-11 04:55:55 +02:00
7b0d646020 CBaseNPC: Add support for 'UseSentence' and 'UnUseSentence' to specify custom sentences.txt entries for an NPC. This is used in t0a0d. 2020-09-11 04:33:42 +02:00
a7e1b3cfd9 scripted_sequence: Skip state check when forcing a .Trigger 2020-09-10 20:28:48 +02:00
9d2a561782 scripted_sequence: Further fixes involving changing of trigger-targets mid triggering. 2020-09-10 20:24:51 +02:00
0f4b31c5f1 CBaseMonster: Reset name of the entity to trigger when scripted_sequence completes. 2020-09-10 19:42:29 +02:00
44b6a3d10a Sentences: Force them to be read in uppercased. 2020-09-10 19:28:36 +02:00
22602fd96a func_wall: Fix networking of the frame/texture attribute 2020-09-10 14:57:40 +02:00
518deec5c6 scripted_sequence: Improve support for triggering via radius. This gets the retinal scanner type entities working for example. 2020-09-10 13:36:19 +02:00
f4d4e86400 CBaseEntity/CBaseMonster: Add support for server-side model events. This enables models, as they sometimes do, to actually trigger entities in the world and much more. There's seperation between client-side and server-side events as well. 2020-09-10 10:34:14 +02:00
633ef19750 func_train: Sound shader support, as well as fixing a possible division-by-zero bug when path_corners explicitly set their speed to 0. 2020-09-10 07:00:28 +02:00
f9ee04f6cf func_button: Sound shader support, yee. Also cut down on some unnecessary code. 2020-09-10 06:02:08 +02:00
0d38fc1400 func_door_rotating: This one gets the sound shader treatment as well. 2020-09-10 05:41:25 +02:00
3025ffbf16 func_breakable: Use sound shaders for impact sounds. 2020-09-10 05:35:52 +02:00
1b6e5985a4 func_door: Use sound shaders instead of hardcoding sounds. 2020-09-09 21:40:25 +02:00
90b716bd5d env_spark: Use sound shaders instead of hard-coding sfx paths. 2020-09-09 21:29:29 +02:00
4d3cace6da Menu: Fixed all 2 warnings. 2020-09-09 08:07:30 +02:00
ca5a7feede Cleaned up misc warnings. 2020-09-09 08:05:34 +02:00