Forum posts

Posted 2 years ago2021-05-15 20:29:32 UTC
in Origin brush Post #345611
An origin brush is just a normal brush that's covered with the special 'ORIGIN' texture. The center of the brush determines the origin of the entity that it's part of - the origin brush itself is then discarded by the compile tools. If a rotating entity doesn't have an origin brush, its origin will be 0,0,0 (the center of the map), which often makes it look like it's flying all over the place.
Posted 2 years ago2021-04-28 23:15:29 UTC
in Where and When do i use Hint brushes? Post #345577
Hint brushes give you some control over how a map is split up into vis nodes by the compile tools. The 'HINT' side creates a new splitting plane, the 'SKIP' sides are ignored. In some cases you can improve performance by strategically breaking up nodes. Personally I think they're rarely needed if you keep limiting visibility in mind when designing a layout.

Here's a very crude example, showing a U-shaped corridor from above:
┌──────┐                ┌──────┐      ┌──┬───┐      ┌──────┐      ┌──┬───┐
└──┐   │  splits into:  └──┬───┤  or  └──┤   │  or  └──┬───┤  or  └──┤   │
┌──┘   │                ┌──┴───┤      ┌──┴───┤      ┌──┤   │      ┌──┤   │
└──────┘                └──────┘      └──────┘      └──┴───┘      └──┴───┘
As shown above, there are multiple ways in which this corridor can be split up into vis nodes. In the first 3 cases, every node is visible from any other node. But in the last case, the top-left node is not visible from the bottom-left node, and vice versa. With a hint brush, you can force the compile tools to produce that particular space partitioning.
Posted 2 years ago2021-04-26 20:40:57 UTC
in how can i emit a sound when selecting a weapon? Post #345564
You're returning from the function on the first line (return DefaultDeploy...), so the second line (EMIT_SOUND(...) is never executed.
Posted 3 years ago2021-04-07 14:48:07 UTC
in Help me, Lords of coding!! Post #345517
You may want to read Shephard62700FR's post more carefully, because there are two problems with your code:
  • it's immediately giving players a 15-seconds double-damage bonus when they spawn, instead of initializing the bonus-expiry time to -1.0f.
  • it's not giving a double-damage bonus when the damage-doubler item is touched, it's only checking whether the player currently has a double-damage bonus.
It's also not preventing the player from picking up another damage-bonus item if they already have an active damage bonus.

As for applying the damage bonus, FireBulletsPlayer is a CBaseEntity member function, so it doesn't know about CBasePlayer fields like m_flDoubleDamageBonusTime (it can be called on any entity, after all). One way to work around that is by creating a virtual float GetDamageBonus() function in CBaseEntity that returns 1.0f, but which you override in CBasePlayer to return 2.0f if HasDoubleDamageBonus() is true (you can look at the CBaseEntity::IsPlayer and CBasePlayer::IsPlayer functions for an example of how a virtual function can be overridden in a child class). You can then use that function inside FireBulletsPlayer as following:
pEntity->TraceAttack(pevAttacker, gSkillData.plrDmg9MM * GetDamageBonus(), vecDir, &tr, DMG_BULLET);

Some of the other weapons call TraceAttack directly, and since weapons contain a pointer to the player (CBasePlayer* m_pPlayer), you should be able to obtain the damage factor for them with m_pPlayer->GetDamageBonus(). For explosives I think you'll need to look at the RadiusDamage function, probably using CBaseEntity::Instance(ENT(pevInflictor))->GetDamageBonus() to get the damage bonus, if I understand how that works correctly.
It's about relative positioning, not absolute coordinates. Info_landmarks act as anchor points. When a level transition occurs, entities are repositioned in such a way that their relative position towards the info_landmark in the new map is the same as their relative position towards the info_landmark in the old map.

Imagine a level transition that takes place in a corner with a vending machine in the middle. To a player, it looks like there's just one corner and one vending machine, but in reality, both maps contain their own corner and their own vending machine. Of course, the illusion only works if both corners look the same and if both vending machines are in the same relative spot in each map. Now when a level-designer sees both maps, they can easily tell how the maps are connected, because those vending machines are so recognizable (they're 'landmarks'). That's pretty much how the game looks at info_landmarks.

If you still can't get it to work, then maybe you can upload both maps to the vault here so I or someone else can have a look.
Posted 3 years ago2021-04-04 14:39:28 UTC
in Make "skill" higher than 3? Post #345503
If you search for g_iSkillLevel, you'll see that the CGameRules::RefreshSkillData function in gamerules.cpp forces the skill-level between 1 and 3 before it looks up skill-specific health and damage values. But there are also a few places throughout the game-code where the skill-level is checked specifically, so it's a bit more complicated than just increasing the maximum skill-level value.
Posted 3 years ago2021-04-04 14:22:59 UTC
in Critical HELP -> Changing dialogue times Post #345502
If you can find someone who knows how to do this, then sure, that would be easiest.

If not, then you could learn how to do it yourself using the tools I mentioned. For example, if you decompile the first tutorial level, t0a0.bsp, and open up the resulting .map file in J.A.C.K., then you'll find a trigger_once in the middle of the first room. This triggers a multi_manager named intromm. When you look at the properties of that entity (press the SmartEdit button so you can see the raw keyvalues) then you'll see that it triggers multiple other entities, each at a specific time:
targetname   intromm -- the name of this multi_manager
intro        .5      -- someone at Valve forgot to remove this, because there's no entity with the name 'intro'
td1          15      -- the door to the HEV suit room
td1l         14.5    -- the light above the door to the HEV suit room
holo1light   0       -- the hologram light
sent_intro   0       -- the scripted_sentence entity for the hologram welcome speech (sentence: !HOLO_WELCOME)
sent_button  14.5    -- the scripted_sentence  for the hologram speech about buttons (sentence: !HOLO_BUTTON)
butlight     15.1    -- the light above the button in front of the hologram
butsprite    15.2    -- the twinkling sprite that shows up above the button
J.A.C.K. can display arrows between entities that trigger each other, but unfortunately that doesn't work for multi_managers. Fortunately J.A.C.K. does have a way to search for entities with specific names: in the menu, go to Map -> Entity report, then in the Filter area of that window, enable 'by key/value', enter 'targetname' as key and the name of the entity you're looking for as value.

In this case, we can see that the first scripted_sentence is triggered immediately, with another shorter speech triggered after 14.5 seconds, along with a door and some lights and sprites. If your translated speech has a different duration, then you'll have to modify all those 14/15 second delays. In BSPEdit, search for multi_manager entities until you find the one with the same targetname (in this case that's the first multi_manager). Here's what it looks like in BSPEdit:
{
"origin" "-1328 -1484 -4"
"butsprite" "15.2"
"butlight" "15.1"
"sent_button" "14.5"
"sent_intro" "0"
"holo1light" "0"
"td1l" "14.5"
"td1" "15"
"intro" ".5"
"targetname" "intromm"
"classname" "multi_manager"
}
The key/value order is different, but that doesn't matter. Now change the 14/15 second delays to something suitable and save the map. Just be sure not to remove or add any double-quotes, otherwise Half-Life won't be able to read these entities anymore.
Posted 3 years ago2021-04-03 20:45:01 UTC
in Critical HELP -> Changing dialogue times Post #345498
BSPEdit lets you to modify entity data inside .bsp files. If it's difficult to find which entities you need to change then it may be useful to decompile the maps, so you can look for the right entities in Hammer or J.A.C.K.
Posted 3 years ago2021-04-01 09:47:07 UTC
in Post your screenshots! WIP thread Post #345493
That's some high-quality mapping there, Andy_Shou! I like how detailed it all looks. The lighting looks very good too. I'm definitely looking forward to a release.

Good luck with the home-schooling bytheway!
Posted 3 years ago2021-03-23 10:08:58 UTC
in Presentation and urgent help Post #345473
The things I mentioned aren't necessarily bad, but they do increase the risk of encountering problems like this, so personally I just don't use the carve tool, and I only rotate by 90 degrees. For slopes I mostly use the shearing tool and I stick to 'safe' slopes like 1:2, 1:3, 1:4, etc. For more complex shapes I use vertex manipulation, often giving brushes triangular faces, and I turn them into entities. For more intricate details it's better to use models.

Carving and rotating can produce tiny cracks between brushes, such as in the (exaggerated) picture below. With off-grid vertices, you might not even see a crack, but brushes can still be misaligned. The BSP process divides the inside of a level into convex areas (leaf nodes), using surfaces as dividing planes. Depending on how the process goes, that tiny crack could become a small convex area of its own, or it could produce a very thin but long area that extends towards the left, splitting other surfaces along the way. Maybe the cause of your problem is an almost infinitely thin crack like this:
User posted image
Posted 3 years ago2021-03-22 23:33:58 UTC
in Presentation and urgent help Post #345470
As far as I know, this problem has to do with numerical precision issues - I think it's caused by different planes that are so similar to each other that some part of the code incorrectly sees them as belonging to the same bsp leaf node. Or something like that. The VHLT tools apparently contain some improvements in that area, but you're already using those, so yeah.

Do you sometimes use the carve tool? Or do you rotate brushes freely? Does the map contain any off-grid vertices, or intersecting brushes whose intersection points are off the grid? Also, the log contains some coordinates (bounding boxes), are there sloped or slanted surfaces nearby?

If you still can't fix the problem, I could have a look if you're willing to send me the rmf/jmf.
Posted 3 years ago2021-03-19 11:57:51 UTC
in Post your screenshots! WIP thread Post #345456
I've been working on some wad and bsp tools recently. As a test, I extracted all textures from halflife.wad, ran a script to apply a black/white dithering effect, and then rebuilt the wad file. I also ran a script to make lightmaps grayscale, so if you always thought that Half-Life wasn't film-noir enough... then today's your day (just ignore the HUD sprites!):
User posted image
Adding small random offsets to vertices in a bsp file is also fun:
User posted image
Posted 3 years ago2021-03-12 22:49:51 UTC
in Help, can't replace textures in HL1 Post #345423
@23-down: maybe .tga was recommended because of things like gamma and color correction? I don't know whether Wally does anything with that, or how much those things really matter for an old game like Half-Life. Colors are surprisingly complicated... :|

@livewired: that's very interesting! Putting light_surface entities all over the place sounds like a lot of work though. Can't you get the effect you want with a proper lights.rad file or an info_texlights entity?
I'm not sure, but I think it only works if the grunt is already targeting that path_corner when it spawns. Monsters also seem to forget about the next path_corner after they've been interrupted, so if you want to force a monster to move to a certain location, it's better to use a scripted_sequence.
Posted 3 years ago2021-03-07 22:42:48 UTC
in Help, can't replace textures in HL1 Post #345404
@MenDax: the problem is that some HL singleplayer maps contain a reference to '\quiver\valve\sample.wad'. So when r_wadtextures is enabled, HL will crash because there is no sample.wad file. Fortunately that's easy to solve: just copy another wad file (or create an empty one, it doesn't matter) and rename it to 'sample.wad'.

A while ago I ran into the same issues as you did, but thanks to livewired's mention of r_wadtextures (thanks!) and an empty sample.wad file, I can finally finish that 'Half-Life: the Dithering' texture mod: :P
User posted image
@23-down: sorry for nitpicking, but... it's 256 colors, not 256-bit, and textures sizes must be multiples of 16 (due to mipmaps). .jpg is indeed a poor format for textures, but what's so special about .tga? And what does that have to do with map compile tools?
Posted 3 years ago2021-02-19 09:08:08 UTC
in Place osprey with command problem Post #345356
Apparently the monster_osprey's origin (position) has not been set, so it's placed at the default (0, 0, 0) position. I guess Xash3D's ent_create command will place entities at the point that you're looking at, but maybe that doesn't work correctly when you're looking at the sky, I don't know.

What happens when you use the ent_last_origin command after creating the path_corner? What happens when you manually specify the positions (ent_create path_corner targetname point origin "-200 -900 -1000", and ent_create monster_osprey target point origin "-200 -900 -1000")?

If that fixes the problem, but your game crashes, then that's because the path_corner doesn't have a target. There should be no 'dead ends' in the path that the monster_osprey is following. Maybe pointing the path_corner at itself will be sufficient, but if not, then you'll need at least 2 path_corners that target each other.
Posted 3 years ago2021-02-18 21:14:13 UTC
in TWHL Tower 2 Post #345354
That's a very ingenious solution indeed, Ogdred! Very nice.
Posted 3 years ago2021-01-24 23:24:00 UTC
in Lightmap resolution Post #345273
According to the descriptions of these settings, they affect how accurately light bouncing is calculated. They do not affect lightmap resolution. Only texture scale does.

From what I can find about the GoldSource bsp file format, it doesn't store separate texture coordinate information for lightmaps, so I think the 16:1 relationship is baked into the engine. There's nothing the compile tools can do to change that.
Posted 3 years ago2021-01-19 10:46:13 UTC
in Changelevel issus Post #345251
I don't have L4D(2), but comparing your screenshots against this guide doesn't show any obvious problems. Did you compile both maps before starting the game, and did they compile without errors? (otherwise one or both of the maps might be outdated) What actually happens when you enter the room?
I've taken a look at the 357 reloading code. Apart from a few events that can be specified in animations, much of the timing appears to be hard-coded. Ideally you'd want the code to react to the end of an animation, but I don't know enough about the HL engine to say whether that's possible.

CPython::Reload calls DefaultReload( 6, PYTHON_RELOAD, 2.0, bUseScope );, so the actual 'ammo transfer' happens after 2 seconds. Apparently that's when you can fire the weapon again, even if the reload animation hasn't finished yet.

DefaultReload also contains the line m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + 3;, which causes CPython::WeaponIdle to pick a new idle animation after 3 seconds, regardless of whether the reload animation has finished. CPython::WeaponIdle also contains hard-coded durations for each of the idle/fidget animations.
Posted 3 years ago2021-01-14 23:13:26 UTC
in Ode to Lockdown [Map Jam] Post #345230
I don't know about padman, but the idea of a rats rats map sounds intriguing... Maybe I'll start working on something.
To make this work as intended, CBarney::BarneyFirePistol must be a virtual function. So in barney.cpp, change the following line:
void BarneyFirePistol( void );
to:
virtual void BarneyFirePistol( void );
Without that, the code in CBarney will always call CBarney::BarneyFirePistol, instead of <type-of-current-object>::BarneyFirePistol.
Very nice! A happy new year to you, too!

I thought I heard a fireplace raging in the background, but you're telling me it was 8-bit noise? :walter:
Posted 3 years ago2021-01-11 17:06:51 UTC
in [HELP] Change level error/glitch Post #345203
Next time, please don't start multiple threads about the same problem (I'll remove the previous thread because this one contains more information).

Having said that, did you read my reply in your previous thread (see below)?
Do both maps contain an info_landmark with exactly the same name? And does each trigger_changelevel match an open, walkable space in the other level (relative to the landmarks)?

And just in case you haven't seen this yet: Tutorial: Changing Levels.
As that tutorial states, both maps must contain 1 info_landmark and 1 trigger_changelevel each, but it sounds like you've put both info_landmarks in the same level. Also, names are case-sensitive, so 'Ladm1' does not match 'ladm1'. Better stick to lowercase names everywhere, just to be safe. If you still can't get it to work after following that tutorial, consider uploading both maps to the vault so some of us can have a look at it.
Posted 3 years ago2021-01-10 22:21:27 UTC
in Help with tank prefab brushwork Post #345199
How could I forget... there's also shear mode. Create a brush for one side of the front of the turret, then use shearing to move one of the sides and the top backwards. Then use the clipping tool to cut off the back of the brush and to make the side of the turret slanted. Then copy this brush to the other side and flip it, and you should end up with a reasonable turret front.

And just as with vertex manipulation, it's better to stick to slope ratios like 1:2 and 1:4 and to use coarser grid sizes.
Posted 3 years ago2021-01-10 21:09:36 UTC
in Disable func_button Post #345198
One detail I forgot to mention: if you don't enable the 'Remove On fire' flag on a trigger_auto, then it will fire again when you reload a savegame that was made in that map. That will invert the button-multisource relationship again, which is not what you want. So be sure to enable that flag on each trigger_auto.
Posted 3 years ago2021-01-10 15:15:23 UTC
in train Post #345193
If you upload a test map to the vault then some of us could have a look. Without that it's difficult to see what's causing the problem.
Posted 3 years ago2021-01-09 17:19:13 UTC
in Buttons made using JACK not working! Post #345190
It's probably because the 'Health' attribute of your buttons is set to 1. That makes them only react to being shot.

I've got the same problem here. I normally press Ctrl+T to turn a brush into an entity, which turns it into the default brush entity (func_detail for me). I then start typing 'func_button' in the Class field, but by the time I type 'func_b' J.A.C.K. has selected 'func_breakable', and it'll add the attributes of that entity (including their default values). This sets 'Health' to 1. When I get to 'func_bu', J.A.C.K. knows it must be a func_button, but now it won't overwrite the existing 'Health' attribute anymore. Selecting 'func_button' from the Class dropdown list instead avoids the func_breakable detour.
Posted 3 years ago2021-01-09 15:00:58 UTC
in Help with tank prefab brushwork Post #345186
It looks like you've only been using the clipping tool so far? I don't think you can avoid vertex manipulation if you want to create a properly slanted M1 Abrams turret. The main rules for brushes are that they must be convex, and that all of their faces must be perfectly flat ('planar').

The M1 turret is a convex shape already, so that shouldn't be a problem, but it can still be useful to split it into multiple brushes (front/center/back), so each part can be manipulated separately.

Keeping faces flat is always tricky with slopes like this, but sticking to 'simple' slopes (1:2, 1:4, etc.) and coarser grid sizes can help reduce the chance that slope edges will meet at an off-the-grid point (this may cause non-planar faces). If that doesn't help, you can always use triangular faces. Either by starting with triangular brushes, or by splitting non-triangular faces by creating edges between vertices (this can be done by selecting them in vertex manipulation mode and pressing Ctrl+F).
Posted 3 years ago2021-01-09 13:08:37 UTC
in Disable func_button Post #345185
To enable or disable an entity, you'll need to use a multisource to act as its master. Enabling an entity is easier to do than disabling it, but both are quite doable (once you know how to work around a few quirks and bugs!).

So we've got func_button A, which must be enabled or disabled by func_button B. We'll add a multisource MS, and set A's 'master' property to MS. Let's now look at 4 possible scenario's:

B is a toggle button...
  • ...that must enable A: add a trigger_relay TR and make it toggle multisource MS, then make func_button B target trigger_relay TR. (if you let B target MS directly, you'll hit a bug where MS won't be triggered one out of every 4 button presses)
  • ...that must disable A: same as above, but also add a trigger_auto that triggers trigger_relay TR as soon as the level starts. This inverts the relationship between B and MS. (give the trigger_auto a small delay, otherwise it might fire before TR has been spawned)
B is an auto-reset button...
  • ...that must enable A: the most common and easy setup: just make func_button B target multisource MS. (buttons don't trigger their target when they auto-reset, unless their target is a multisource - so this scenario was designed to be easy to do)
  • ...that must disable A: add a trigger_relay TR that toggles multisource MS, and add a trigger_auto that triggers trigger_relay TR when the level starts. But instead of making func_button B target trigger_relay TR directly (which you would do if B were a toggle button), make it target a multi_manager MM. Then make multi_manager MM target trigger_relay TR twice: first with a delay of 0, then with a delay that corresponds to func_button B's auto-reset time (or slightly lower, just to be safe). (the problem here is that auto-resetting buttons do not trigger their target when the reset, so we'll have to use a multi_manager to simulate that behavior)
If you want to use multiple buttons to enable/disable func_button A, then repeat the above steps for each of those buttons. And if you want to enable/disable multiple things at the same time, then just make all of those things use multisource MS as their master.
Posted 3 years ago2021-01-08 23:18:29 UTC
in Entity brushes are fullbright Post #345181
To be honest, I think that part of that tutorial is a bit confusing (or maybe it's outdated? who knows). The 'Minimum light level' setting controls the minimum light level of the entire entity, it's not related to texture lights.

If you want to use this trick then you'll have to use world or func_detail brushes to cover the sides. Though I think it's easier to just make that texture emit some light, either by adding an entry to your compile tool's lights.rad file, or by adding an info_texlights entity to your map, as blsha already mentioned.
Posted 3 years ago2021-01-07 22:59:49 UTC
in Entity brushes are fullbright Post #345178
To fix the func_wall, set its 'Minimum light level' (_minlight) to 0. It was set to 1, making it fullbright.

The func_water is trickier: apparently water textures (textures whose name starts with an exclamation mark) are always rendered fullbright by the engine. If you don't need the water surface to be wavy then you can use a non-water texture instead. Otherwise, you can set the func_water's 'Render Mode' to 'Texture', with a fairly low 'FX Amount'. That'll make the water more translucent, reducing its brightness against a dark background.

As for func_detail, it's a brush entity, so it won't show up in the list of point entities. But if you're turning a brush into an entity and still don't see func_detail in that list, then perhaps you've got an older zhlt.fgd file?
Posted 3 years ago2021-01-06 17:09:49 UTC
in Entity brushes are fullbright Post #345174
@blsha: according to the ZHLT Version history, func_detail was introduced in Vluzacn's ZHLT version 25. I don't think I've ever heard about the compile tools you linked to (P2ST), but some searching and auto-translating suggests that it was developed entirely separate from the ZHLT 'family', and that it's somewhat related to the Xash3D engine? How does it compare to the latest VHLT tools?

@sindikatas: can you show a screenshot - or better, upload your map to the vault (or at least the problematic part of it) so we can have a look at it? Without that, we can only guess.
This post was made on a thread that has been deleted.
Posted 3 years ago2020-12-23 14:50:48 UTC
in FUNC_VEHICLE 2020 Post #345101
aim_saturn is ready for duty:
Loading embedded content: Vault Item #6476
Posted 3 years ago2020-12-22 01:06:01 UTC
in FUNC_VEHICLE 2020 Post #345093
Almost done:
CT's (rockets) vs ET's (ufos)CT's (rockets) vs ET's (ufos)
Posted 3 years ago2020-12-19 18:44:37 UTC
in FUNC_VEHICLE 2020 Post #345090
Thanks! I might just have time to finish something now. It's another space-themed map (someone's gotta use Admer456's effects) but I think it's different enough from Unq's that that's ok:
Terror(ists) from Outer SpaceTerror(ists) from Outer Space
Posted 3 years ago2020-12-19 11:53:22 UTC
in cache_free: not Post #345089
Is the message cache_free: not, or does it read Cache_Free: not allocated? Because that gives a match in the Quake engine code (which HL is based on): Cache_Free: not allocated. I think this will only be triggered by a bug, not by a lack of memory. That file also explains the purpose of this cache memory:
Cache_??? Cache memory is for objects that can be dynamically loaded and
can usefully stay persistant between levels. The size of the cache
fluctuates from level to level.
In another post you mentioned not knowing the difference between the Name and Global Entity Name attributes, so do you perhaps have a lot of entities with a global name? That might cause this bug to be triggered more easily. Only use Global Entity Name if you have to.

Another hunch: are you loading previous savegames when testing? I don't know how robust HL is in this regard, but I suspect it might be causing issues if new (global-named) entities have been added to or removed from a map.
Posted 3 years ago2020-12-17 19:15:59 UTC
in cache_free: not Post #345081
I can't find that error in the game code, so I guess it's some kind of buffer in the engine that's too small to handle whatever you're doing. When you talk about a large sequence, do you mean a model animation that's very long?
Posted 3 years ago2020-12-15 00:50:51 UTC
in FUNC_VEHICLE 2020 Post #345063
Huh, that's interesting! It looks like these are the available effects - different kinds of dynamic lights (including a more subtle one that doesn't flicker), the yellow 'monster-stuck-in-wall' particle effect, a no-draw setting and a few other things. So if anyone wants to make a yellow-particle 'vehicle'...
I've created an example package for you. It doesn't solve the full-ammo problem, but it does make it much easier to add these high-speed weapon pickups to your maps. And if you do find a better solution, then all you need to do is update a single template and recompile your map.

To get back on topic, game_player_equip works by calling CBasePlayer::GiveNamedItem, which spawns an item and then immediately makes it touch the player. This is also used by the give and impulse 101 cheats. impulse 101 uses a bit of a hack to ensure that the item is killed afterwards (just in case the player already has max ammo), so I think the easiest solution would be to always apply that hack.
The only thing I can come up with is to first use a player_weaponstrip, but that's also a big change in terms of gameplay, with players only being able to carry one weapon at a time (unless you've got pickup spots that equip them with multiple weapons of course). If that's not acceptable then you'll have to modify the game code.

On a sidenote, you might be interested in a compile tool I've been working on, called MESS (Macro Entity Scripting System). It makes duplicating groups of related entities easier by letting you create a single template that can be reused. The latest version also lets you create custom entities for templates. With the right setup, you can place standard weapon and item entities in your map, and let MESS replace each of them with a trigger, multi_manager, game_player_equip and various sprites. And if you need to adjust something, you only need to modify a single template map, instead of every weapon pickup.
MESS 1.1 is now available! :)

The big changes in this version are a new 'rewrite rule' system for creating custom template-based entities, and support for J.A.C.K. map files (for template maps). The rewrite rule system makes it possible to create your own .fgd files, with custom entities like monster_warp or rh_rat, along with instructions for MESS to 'rewrite' these entities to macro-inserting entities that use a monster_warp.rmf or rh_rat.jmf template map.

Download links:
  • MESS 1.1 - The compile tool itself.
  • example maps - Updated example maps. Be sure to check out the new rathunt example, and its use of the custom rh_rat and rh_message_system entities!
Documentation:
  • Readme - An introduction to MESS, and instructions on how to get started.
  • Entity guide - Like TWHL's entity guide, but for MESS' macro entities.
  • Rewrite rules - For creating custom entities, and telling MESS to rewrite them to template-inserting entities.
  • Scripting system - Documentation for MScript, the scripting language used by MESS. See the functions section for a list of functions, many of which are new in 1.1.
Full list of changes:
  • Added a 'rewrite rule' mechanism, for creating template-based entities.
  • Added support for J.A.C.K. template map files (.jmf).
  • Added several string, math, trig, color, flags and directory-related MScript functions.
  • Added a not operator to MScript (alternative for !).
  • MScript now converts none function arguments to the default value for the parameter's type, for non-optional parameters.
  • Added a 'REPL' mode, for interactive testing of MScript expressions.
  • The special spawnflag<N> attributes now start at 0, not 1.
  • The template_name attribute is now a target_destination, so J.A.C.K. can show links between macro entities and the templates they're using.
  • Added MScript documentation.
Bugfixes:
  • Fixed that .rmf files without cameras failed to open.
Posted 3 years ago2020-12-01 13:36:44 UTC
in Post your screenshots! WIP thread Post #344988
Andy_Shou: that's looking very nice!

Kachito: that's a nice way to avoid the standard low-res GoldSource look. Very stylish!
Posted 3 years ago2020-12-01 13:05:27 UTC
in Mapping with Wall Worm? Post #344987
I haven't tried it, but it certainly sounds very interesting, especially for natural environments. It's a modern tool, useful for a lot more than just level-design, and it's also extensible.

On the other hand, 3ds Max isn't exactly cheap... If something like this was available for Blender then I would certainly give it a try, but 3ds Max just isn't worth it for me.
Posted 3 years ago2020-12-01 11:50:06 UTC
in [Help] Half-Life Flipsigns Post #344986
You're the one that decided to make a translation mod, so that's all up to you, right? If I were you I'd just leave it as it is - nobody could read it before anyway.

As for the military, Black Mesa was built around an old ICBM silo complex, and some nearby facilities were apparently still in use by the military. They were also involved in several weapon research programs, so you'd expect them to have some military personnel come over on a regular basis anyway.
Posted 3 years ago2020-11-26 22:55:05 UTC
in Review everything! [2nd edition] Post #344958
off-grid vertices in HL1 mapping

In my early years I would have frowned upon this, but now I wonder: what's the problem? Why shouldn't we be able to make tiny brushwork details? The reason why Hammer snaps them back is probably technical - either to make things easier for the compile tools, or so they can produce more optimal results, or to reduce problems caused by numeric (im)precision. Which reminds me of the 'Leak-o-matic' (I mean 'carve') tool. Carve with a cylinder and you'll get plenty of off-grid vertices, and multiple leaks as a bonus. But you'd probably get those leaks even without snapping. So remember kids: carve with care, and keep your vertices on the grid!

linerider (the game)
Posted 3 years ago2020-11-25 13:27:27 UTC
in Railroad swapper Post #344952
A path_track that has both a 'Next stop target' and a 'Branch target' will switch between these when triggered. By default, it'll point trains to the 'Next stop target', but after triggering the path_track, it will point trains to the 'Branch target'. Triggering it again will make it point to the 'Next stop target' again.

Pretty much like how a real railroad switch works: you 'trigger' it to switch it to another track, so that any train that comes by will be redirected to that track.
Posted 3 years ago2020-11-24 00:07:53 UTC
in Monstermaker enemies not hostile Post #344943
I did some monstermaker tests recently for a tool I'm working on, and I noticed the same. I think I've only seen it happen the first time a particular monster type spawned, so it might be some kind of initialization issue, but I didn't investigate it further.
Posted 3 years ago2020-11-20 14:02:00 UTC
in Need help with Activities and NPC coding Post #344908
The problem is that iSequence = LookupActivity ( NewActivity ); line at the bottom - that's overwriting the animation you've selected with a random idle animation. If I were you I would also simplify this code by creating a function that returns the name of the NPC's weapon, so you only need a single if/else statement that decides between "ref_aim_" + WeaponName() and "crouch_aim_" + WeaponName() (that's not exactly how you concatenate strings in C or C++ - right now I don't have time to look that up - but you should get the idea).

(I've also edited your post to fix the code formatting - for large code blocks, use triple ticks: ` ` ` code goes here ` ` `)