Posted by schulzor2004 on Fri Feb 18th at 1:07pm 2005
member
4 posts
10 snarkmarks
Registered: Jan 20th 2005
Location: Germany

Occupation: Manager
Posted by French Toast on Fri Feb 18th at 2:33pm 2005
French Toast
member
3043 posts
300 snarkmarks
Registered: Jan 16th 2005
Location: Canada

Occupation: Kicking Ass
Posted by schulzor2004 on Fri Feb 18th at 3:02pm 2005
member
4 posts
10 snarkmarks
Registered: Jan 20th 2005
Location: Germany

Occupation: Manager
Posted by RaPtoR on Fri Feb 18th at 3:34pm 2005
[addsig]
Posted by omegaslayer on Fri Feb 18th at 5:02pm 2005
Doing this crashes hammer (at least for me), de-compile them map and find out
[addsig]
omegaslayer
member
2481 posts
401 snarkmarks
Registered: Jan 16th 2004
Location: Seattle, WA

Occupation: Sr. DevOPS Engineer
Posted by ThisDealer on Fri Feb 18th at 10:28pm 2005
>>>>>>>>>>>>
just compiled my map and hes right i just added a wep and renamed it to weapon_slam and works fine, bear in mind it shows up as a obsolete icon in hammer ;P [addsig]
Posted by French Toast on Fri Feb 18th at 10:52pm 2005
*Kudos to you Rof, that decompiler comes in handy a lot* [addsig]
French Toast
member
3043 posts
300 snarkmarks
Registered: Jan 16th 2005
Location: Canada

Occupation: Kicking Ass
Posted by keved on Sat Feb 19th at 5:30pm 2005
A bit baffling that Valve release the Slam but don't actually update the fgd to include its entity!
But yeah, as others have said, just add any weapon entity and manually change its class name to weapon_slam. That works fine...I've already added it to 2 of my levels, NP_Refinery beta 7 and Riot beta 1.
member
252 posts
515 snarkmarks
Registered: Jan 21st 2005
Location: Leeds, UK

Occupation: Games designer, Rockstar Leeds
Posted by fishy on Sun Feb 20th at 2:31am 2005
it's not a big deal, as valve will probably have the fgd updated soon enough, but i thought i'd take a few pics and explain it to anyone thats interested.
open the halflife2.fgd in your text editor (it's in the sourcesdk/bin folder), and scroll down to where the weapons are listed. i left the line numbers viewable to make it easier. if you dont have line numbers, it shouldn't be too hard too find.

the line that's highlighted in blue and the square brackets at the end of the line above are what i added. then, when i save it and restart hammer, i have this;

Posted by Dark Tree on Thu Sep 29th at 11:45pm 2005
1. I cannot add a "weapon_slam" to my map, as it doesn't exist in hammer. I tried adding a model and just renaming it to weapon_slam as the class value, but that just produces an obsolete dude. I try to compile the map, but no slam in the map. I restart hammer, still no slammeroo. I decompiled a map containing some slams, and the entity was indeed a weapon_slam (but it shows up as an obsolete entity). I have no slam models in my weapons folder or anywhere else I can find.
2. Issue #2: I want to add a npc_slam to my map (or whatever they are called) so that when the map starts up, the slam is already mounted and activated (not as a weapon to pick up). Obviously, if I can't even get the slam in my map, I can't do this portion either.
Am I missing something? Can I not creat a HL2SP (or MP) map with slams? I opened up HL2 and opened my map and opened console and typed 'give weapon_slam' is responds in red lettters: 'Attempted to create unknown entity type npc_slam!'. So what's going on?
Also, I tried Fishys method and edited the fgd file. Now when I open my map with my "slam" entitys in it, there isn't any longer an 'obsolete' entity, but a small blue box (doesn't show model). On its 'flags' tab it has the options to tick 'start constrained' and 'start without grab functionality' which shows that it is at least REGISTERING that there is an existign slam entity...
why the hell would I manually have to edit the fgd file to make hammer do that? The slam still does not show up in any way, shape, or form in my map.
I did search for this topic, so if it has been covered somewhere else, feel free to point me in the right direction.
And again, thanks, guys in advance.
Dark Tree
member
646 posts
144 snarkmarks
Registered: Apr 30th 2004
Location: USA

Occupation: DigiPen student
Posted by omegaslayer on Fri Sep 30th at 1:11am 2005
omegaslayer
member
2481 posts
401 snarkmarks
Registered: Jan 16th 2004
Location: Seattle, WA

Occupation: Sr. DevOPS Engineer
Posted by Dark Tree on Fri Sep 30th at 2:19am 2005
Is there a way to make slams available for HL2? Or would there have to be some coding involved.....
Dark Tree
member
646 posts
144 snarkmarks
Registered: Apr 30th 2004
Location: USA

Occupation: DigiPen student
Posted by omegaslayer on Fri Sep 30th at 3:59am 2005
omegaslayer
member
2481 posts
401 snarkmarks
Registered: Jan 16th 2004
Location: Seattle, WA

Occupation: Sr. DevOPS Engineer
Posted by Dark Tree on Fri Sep 30th at 6:29am 2005
To make it decent looking, I think I will have to do:
slam model
env_beam
env_explosion
env_shake
trigger_hurt
trigger_once
It sounds like a long operation, but, like you said....doable....and once I do it once, just copy and pasteroo (varying trigger names).
Tank j00 <3
Dark Tree
member
646 posts
144 snarkmarks
Registered: Apr 30th 2004
Location: USA

Occupation: DigiPen student
Posted by Crono on Fri Sep 30th at 6:44am 2005
This way, you could pick it up and junk. If you wanted a "mountable" one with a laser, I'm sure there's certain entities you can tie them to on contact or something as such.
Just another way to think about it, I guess.
Posted by omegaslayer on Fri Sep 30th at 10:46pm 2005
To make it decent looking, I think I will have to do:
slam model
env_beam
env_explosion
env_shake
trigger_hurt
trigger_once
It sounds like a long operation, but, like you said....doable....and once I do it once, just copy and pasteroo (varying trigger names).
Tank j00 <3
Really all you need is the model, env_beam (there is an option in there that allows it to have an output when the player trips the beam) and env_explosion, this does damage realisically rather then the trigger hurt), the shake, hurt are handled by the env_explosion. Keep things as simple as possible
edit: In the env_beam there is an option called touchtype(tripwire) and set the value to player (or what ever you want). Then have an output of "OnTouchedByEntity" and set acordingly.
omegaslayer
member
2481 posts
401 snarkmarks
Registered: Jan 16th 2004
Location: Seattle, WA

Occupation: Sr. DevOPS Engineer
Posted by Dark Tree on Sat Oct 1st at 11:06pm 2005
Dark Tree
member
646 posts
144 snarkmarks
Registered: Apr 30th 2004
Location: USA

Occupation: DigiPen student
Snarkpit v6.1.0 created this page in 0.0129 seconds.

