Forum posts

Posted 3 months ago2024-01-07 10:37:38 UTC
in New item changes players speeds for movements Post #348416
Nobody has an idea? :-( I saw there are some console-commands that would do the trick but it seems there is no way to make an entity (item) to trigger them. In Source there is the point_clientcommand but in Goldsource there is not. Is it possible to get this into my mod?
The prisoner flag can not be removed after a while. You should try to have the zombie execute a scripted sequence with an idle-animation. Once it is triggered, the sequence will stop and the Zombie will behave normal.
Or you build a full transparent box around it as a func_door and remove it when the zombie should start attacking.
Is there way After some time, to uncheck the prisoner flag of a zombie?
Posted 3 months ago2024-01-06 23:47:38 UTC
in The Rimpository Post #348413
Yeah so I’ve been conglomerating prefabs and made a huge pack. Also made 48 plants models of different kinds.

I’m no longer able to spend many hours adding to it like I have been, but I got it started with SassyRoss’s help with his contributions.

If you want to help and get credited, make prefabs or share props made (with the default wads only) and I’ll insert them in. Doesn’t take much to copy and paste things.

Areas that need some love are the exterior building parts and various prefabs there, and the machinery section like pumps and generators.

If you decide to contribute, make sure the prefab face right on the top view, that’s 0 degrees.

Let me know what you guys think of this little project.
Rimrook RimrookSince 2003
It's a scientist and Is selected to get teleported to the scripted sequence, but to prevent the scientist to frozee, i selected an idle animation. When i enable idle the scripted sequence starts when game loaded, when i didn't use a idle animation, the scripted sequence starts normalità on a trigger, but the scientist freezes. I am so confused
Pls help
Yes, i want the zombie attack the scientist later.
That's the problem though. We don't know exactly what Combined wants because he hasn't described that yet. Just wait for him to elaborate.
What if he wants the zombie to attack the scientists later though?
Then use scripted_sequences to swap the prisoner zombie out for a regular one.
monster_urby monster_urbyGoldsourcerer
What if he wants the zombie to attack the scientists later though?
Meerjel01 Meerjel01I want to be a Meerjel
What do you mean by "static"? If you want it to idle in place and not attack nearby scientists, you could set the Prisoner (16) flag.
Is it a mod or a map? If it's a mod then you could probably program it in.

If not then I'm not useful here.
Meerjel01 Meerjel01I want to be a Meerjel
help pls
Ok thanks
To be more precise, trigger_relay allows you to trigger entities in a specific mode. Normally all triggers trigger using "Toggle", but with trigger_relay you can specify "On" or "Off", not just Toggle, which is useful if you want to make sure you trigger, for example, an env_sprite off in a specific case, regardless of whether previously it was turned on or not. In such a case triggering with "Toggle" will turn it on, but triggering an env_sprite that is already off with "Off" mode will not turn it on.
The trigger_once make you triggered something, a trigger relay is like it's name says a relay, it's triggered by something to make like the intermediate among few entities, useful in some cases.
neophus775 neophus775Goldsrc mapper
What's the difference between them?
Posted 3 months ago2024-01-04 15:51:49 UTC
in Christmas themed maps & servers Post #348395
Ok thanks

how you created a server?
I have Half-Life (app id: 70) installed. It ships build 9911 with hl.so (SHA1:a9f5d8eef0b206524167028a792ddcbb28f746d2).
A fresh HLDS install via SteamCMD (app id: 90) ships build 9907 with hl.so (SHA1:fde38762b7258cdbb92b10802ecdf6b7dc280ccc).

I noticed that HLDS is usually behind the Half-Life client installation, so basically I have to run outdate dedicated servers.

Why?
Posted 3 months ago2024-01-03 17:49:55 UTC
in func_pushable with a model instead of a brush Post #348393
Thank you all. Using the model key did not work, but zhlt_usemodel did when pointing to a env_sprite. As you said, I could still move it with "use" but not by running into it. Funny, I didn't know that.

@Erty, I meant to say that I hadn't found the code for func_pushable in the SDK, but I've located it now, it's inside func_break.cpp as it inherits from func_breakable. I think it will be easier to modify it so the entity uses a .mdl than to keep using nasty hacks to achieve the same.
Posted 3 months ago2024-01-03 11:31:25 UTC
in New item changes players speeds for movements Post #348392
Update: so I entered
pPlayer->pev->maxspeed = X;
and this works, but I need the ducktime, forwardspeed etc. and those dont work this way :-( Any idea what I have to do please?
Posted 3 months ago2024-01-03 11:10:23 UTC
in func_pushable with a model instead of a brush Post #348391
oh yeah, Featureful has a motion_manager that can do this
Posted 3 months ago2024-01-03 09:17:55 UTC
in func_pushable with a model instead of a brush Post #348390
Using the model key (or zhlt_usemodel targetting an env_sprite using the model for example) you can set most brush entities to use a model instead (remember to give them an ORIGIN brush where you want the model's origin to be), but that'll replace the entire brush model including the cliphulls resulting in it having no collisions as kimilil says.
(Also if using model you need to make sure the model is already precached in the map somewhere otherwise it'll crash).

Using game code would be the better way to go. That it's not already in the SDK doesn't mean it cannot be done.

You could implement a sort of "attach model" key directly in func_pushable for your mod that places a model at the origin and updating its position within the pushable's Move() method, or even more useful would be implementing an entity that can "parent" one entity to another so they move together, like trigger_setorigin in Sven Co-Op or the movewith (iirc) feature in Spirit of Half-Life.
It's possible the Featureful SDK already has some entity parenting feature that you could use, so that's worth checking out.
Posted 3 months ago2024-01-03 05:33:50 UTC
in func_pushable with a model instead of a brush Post #348389
using a model is possible, but it would have no collision. it'd still movable with use key though.
Posted 3 months ago2024-01-02 19:53:32 UTC
in func_pushable with a model instead of a brush Post #348388
Hi all, I know that func_pushable is a brush-based entity, but I'd like to know if there's a trick to use a .mdl instead, so the movable object would have more detail than anything made out of brushes in Hammer.

If the answer is no, could this be done in code? (Probably not, I don't recall seeing this in the SDK)
Thanks. You helped me!
Posted 3 months ago2024-01-02 15:00:12 UTC
in Christmas themed maps & servers Post #348386
Start Half-Life, open the server list with Find servers, look for „Christmas Coralie” and join.
Alternatively, open up the console (it's '~' or '0' NOT on the numpad) and enter the
connect addon.coralie.megabrutal.com:27019
command to join.

I'll be running it until Epiphany at least.
Posted 3 months ago2024-01-02 10:22:18 UTC
in New item changes players speeds for movements Post #348385
As a non-coder to my own suprise I was able to clone the longjum-item to get a new item for the player to pick up. The effects should be a changing of players speeds and heights but I dont know how to do that :-(
The relevant part of the class in items.cpp looks like this:

{
pPlayer->m_fMYITEM = true; // player now has the Item
???
MESSAGE_BEGIN(MSG_ONE, gmsgItemPickup, NULL, pPlayer->pev);
WRITE_STRING(STRING(pev->classname));
MESSAGE_END();
return true;
}

What do I need to enter for the ??? to change the cl_forwardspeed, flDuckTime etc please? I am unable to make the correct entries :-(
awkook's method is better done just using an invisible func_breakable (e.g. covered entirely in NULL texture), or completely replaced by a gibshooter, as it's only there to spawn gibs.

Either way, for the first step you'll use the func_train as both UrbaNebula and awkook already suggested (for how to use it, check the entity guide page UrbaNebula already linked). This will make a brush that moves any path you define for it (such as straight down in your case) and rest at the end.
If this is all you need, then no more is needed to be done.
Any step after that is for creating any secondary effects, for example the brush breaking into pieces when it hits the scientist (this is what awkook was explaining). If you wish to do this, there's at least 3 ways to trigger the effects:
  1. Timed from when the brush starts falling
  2. Using the Fire On Pass (message) key of a carefully placed path_corner
  3. Have the scientist trigger it using its Take Damage TriggerCondition
For the effects themselves, as I said earlier you could use an invisible func_breakable or a gibshooter to spawn whatever gibs you want (even from the ceiling where the brush starts falling from, to simulate it breaking from/through there). An env_render targetting the brush can be used to turn it invisible, or a trigger_relay can KillTarget it to remove it from the game, if you want your brush to "break" on collision. It's up to you to find out exactly what you want to happen and when.

1 Timed:

When you trigger the brush to start falling, have a delayed trigger for your effects. You can calculate this by measuring the distance between the brush' start position and its position when it collides with the scientist (for example 100 units). If you made it fall with a speed of 800 units/second, then the delay should be distance / speed = time. In this example, 100 / 800 = 0.125 seconds.

2 Fire On Pass:

path_corner has a Fire On Pass key that can be used to trigger something when a func_train, well, passes it. Just place it where the geometric center of the train would be when it collides with the scientist.

3 TriggerCondition:

If the scientist is never going to be hurt in any other way, you can use it's TriggerTarget key set to trigger the effects and TriggerCondition set to Take Damage (2) and it'll trigger the effects once the train starts hurting it.
Maybe easier for beginning would be a func_door. Put the brush where it should be at the beginning (above the sicientist), make it a func_door with a name, downwoards-direction, a 100-damage when blocked, high movement-speed and set the flags to 'start open' and 'monster cant'. Depending on the size and position you need to try out which entry in LIP works best. Set another brush close to the player, make it a trigger_once and enter the name of the func_door as target. When the player passes through it, the func_door will move down and crash the scientist.
Can you explain Better? I am very new here
You could use a func_train to have a box fall onto a scientist, then use env_render to make it invisible when it hits the scientist, all the while having an invisible (via env_render) func_breakable on top of the scientist that becomes visible when the func_train goes invisible, and have it trigger to break, creating crate gibs. kind of a hacky way to do it, but you could sell the effect this way.
awkook awkookaka vhetutor
Posted 3 months ago2024-01-01 16:47:43 UTC
in TWHL Tower: Source Post #348380
Hey, everyone! I'm now looking for testers for the Alpha 3 build of TWHL Tower: Source. This will probably be the last alpha, so I'm looking for some new testers to make sure everything plays smoothly on a first playthrough. Let me know if you want to be a tester by sending me a direct message on the TWHL Discord server (my username is @dr._orange) or the TWHL website!
Dr. Orange Dr. OrangeSource good.
I think the only option is to use a func_train for the falling debris. You can set a high Damage on Crush value that will gib the scientist (or any other NPC) that is caught under it.
monster_urby monster_urbyGoldsourcerer
Posted 3 months ago2023-12-31 16:52:13 UTC
in Christmas themed maps & servers Post #348378
How to join?
Any help appreciated and if possible can you explain me step by step. Thanks for all the responses
Posted 3 months ago2023-12-30 16:26:31 UTC
in Same Damage in Radius for grenade explosions Post #348376
I cloned the weapon_handgrenade for HL1 (Solokillers SDK) with all settings and want to have it only give 1 Damage in the whole radius of the explosion. The DMG-skill is to 1 and in the ggrenade.cpp I tried these two settings:

void CSTUNGrenade::Spawn()
{
pev->movetype = MOVETYPE_BOUNCE;
pev->classname = MAKE_STRING("grenade");

pev->solid = SOLID_BBOX;

SET_MODEL(ENT(pev), "models/grenade.mdl");
UTIL_SetSize(pev, Vector(0, 0, 0), Vector(0, 0, 0));
* pev->dmg = 100;*
m_fRegisteredSound = false;
}

and

CSTUNGrenade* CSTUNGrenade::ShootTimed(entvars_t* pevOwner, Vector vecStart, Vector vecVelocity, float time)
{
CSTUNGrenade* pSTUNGrenade = GetClassPtr((CSTUNGrenade*)NULL);
pSTUNGrenade->Spawn();
UTIL_SetOrigin(pSTUNGrenade->pev, vecStart);
pSTUNGrenade->pev->velocity = vecVelocity;
pSTUNGrenade->pev->angles = UTIL_VecToAngles(pSTUNGrenade->pev->velocity);
pSTUNGrenade->pev->owner = ENT(pevOwner);

pSTUNGrenade->SetTouch(&CSTUNGrenade::BounceTouch); // Bounce if touched

// Take one second off of the desired detonation time and set the think to PreDetonate. PreDetonate
// will insert a DANGER sound into the world sound list and delay detonation for one second so that
// the grenade explodes after the exact amount of time specified in the call to ShootTimed().

pSTUNGrenade->pev->dmgtime = gpGlobals->time + time;
pSTUNGrenade->SetThink(&CSTUNGrenade::TumbleThink);
pSTUNGrenade->pev->nextthink = gpGlobals->time + 0.1;
if (time < 0.1)
{
pSTUNGrenade->pev->nextthink = gpGlobals->time;
pSTUNGrenade->pev->velocity = Vector(0, 0, 0);
}

pSTUNGrenade->pev->sequence = RANDOM_LONG(3, 6);
pSTUNGrenade->pev->framerate = 1.0;

// Tumble through the air
// pGrenade->pev->avelocity.x = -400;

pSTUNGrenade->pev->gravity = 0.5;
pSTUNGrenade->pev->friction = 0.8;

SET_MODEL(ENT(pSTUNGrenade->pev), "models/w_grenade.mdl");
  • pSTUNGrenade->pev->dmg = 100;*
return pSTUNGrenade;
}


I tried different values but either the damage is high in the radius (like normal) or 0 in the radius but 1 at the center of explosion. Also the scale of the explosion (spr) is scaled bigger when the values are lower.

Is it possible to have the damage 1 in the whole radius no matter where and not automatically upscaling the spr?
Thanks
The hard part about mapping is exterior
REBELVODKA REBELVODKASemper fidelis
Posted 4 months ago2023-12-29 00:45:15 UTC
in Christmas themed maps & servers Post #348372
Probably I'm a little late with this, but strictly speaking it's still Christmas season, so I go ahead. I created a Christmas themed HLDM server which mostly runs Christmas themed and snowy maps. Yeah, some of them are a bit of a stretch because it only features pine trees those are definitely not Christmas trees, and some of them are just snowy without any Christmas going on; but there are some fun Xmas maps as well.

Here is the current mapcycle:
ms_xmas_rats_beta
penguin_park
codename_blueballz
simple_xmas_dm
creep_xmasitall
mario_xmas2
dm_utopium
dm_alpestrine
veryratsxmas
tetrico_navideno
creepy_xmas
toyshop_rats
moab_compo27
sr_xmas
iceworld
simpsons_xmas_rats
lostinxen
frozenrats
snowbank
holidayhell
Can you suggest any more maps to add?

Btw, my server's address is addon.coralie.megabrutal.com:27019. Do you also run or know about any Christmas servers I should check?
如果你坚持,则最好谨慎行事,不要让事件的受害者承受二次伤害。我会离你远点,因为我们可能不是同一条道路上的创作者。
If you insist, it is best to proceed with caution and not subject the victim of the incident to a secondary injury. I will stay away from you because we may not be creators on the same path.
Lei Shi Lei ShiFRS石磊
Extended 2 weeks! New due date is January 17th.
Why are so many of your projects the most basic edgelord subject matter? It's so boring.
How about making a map not based on recent real human suffering and death? Just a thought.

Please keep in mind that offensive content can get you banned, so tread carefully if you continue this project. It looks like you got banned from Gamebanana already.
Archie ArchieGoodbye Moonmen
So, you shouldnt worry about overcomplicating, just build how you want, and in the end you can optimize it, but as for right now, its not overcomplicated!

-Tarek
Tarek TarekA literal dumbass who uses Hammer++
Is hard find good pictures of Dubrovka theatre so Im making best as I can.
The problem is if I am overcomplicating or not. It is beign too exact or not.
Overall viewOverall view
Another viewAnother view
Last viewLast view
REBELVODKA REBELVODKASemper fidelis
Posted 4 months ago2023-12-27 09:00:00 UTC
in How to map for Half Life: Blue Shift Post #348366
Ill try it again sometime, since im quite busy now!
Tarek TarekA literal dumbass who uses Hammer++
Posted 4 months ago2023-12-26 23:44:28 UTC
in How to map for Half Life: Blue Shift Post #348365
bspfix switches between normal and bshift-compatible bsps. if a "fixed" bsp crashes the game, that's how you tell it's actually "unfixed", so just run it again. ;)
Posted 4 months ago2023-12-26 22:48:19 UTC
in Removing battery percentage and little line from HUD? Post #348364
Thanks for your pattience, i did intended to modify the code.
Posted 4 months ago2023-12-26 18:41:51 UTC
in How to map for Half Life: Blue Shift Post #348363
I used the bspfix but it always crashes when trying to run a map, as for the fgd, i will use it now, thank you a lot, I just downloaded xblahs tool ,since that helps me a lot too, but thanks for all the tips!
Tarek TarekA literal dumbass who uses Hammer++
Posted 4 months ago2023-12-26 17:34:44 UTC
in How to map for Half Life: Blue Shift Post #348362
Use this FGD: https://github.com/SamVanheer/halflife-bs-updated/blob/master/fgd/bshift.fgd

From my experience, when using the deafult FGD all of the unique entities to Blue Shift will show up as puple boxes that won't apear when you test out your map. This updated FGD fixes it.
Posted 4 months ago2023-12-26 14:44:24 UTC
in How to map for Half Life: Blue Shift Post #348361
Adapting Hammer instructions to JACK is not that hard. JACK is a very close to Hammer 3.x in its interface. In fact they're way more similar to each other than any one of them to, say, TrenchBroom or NetRadiant.

Setting up for Blue Shift is not much different than setting up for any other GoldSrc game/mod:
  • Set up mod directory to <steam library>/steamapps/common/half-life/bshift_addon/
  • Replace Half-Life's FGD with Blue Shift's FGD
  • Add Blue Shift's WADs, in particular, barney.wad and its own decals.wad
The only important difference particular to Blue Shift is to run bspfix (link) on every bsp file you compiled before you run it.