Models.. Like the Skeleton

Models.. Like the Skeleton

Re: Models.. Like the Skeleton Posted by G4MER on Mon Nov 3rd 2003 at 1:04am
G4MER
2460 posts
Posted 2003-11-03 1:04am
G4MER
floaty snark rage
member
2460 posts 360 snarkmarks Registered: Sep 6th 2003 Location: USA
How do you use models in maps? how are they placed?

Id like to add a couple skeletons to a grave area I am making.. and a stack of skulls ( if I can find a model ) with a Texture to match behind it.

($)
Re: Models.. Like the Skeleton Posted by Gollum on Mon Nov 3rd 2003 at 10:02am
Gollum
1268 posts
Posted 2003-11-03 10:02am
Gollum
member
1268 posts 525 snarkmarks Registered: Oct 26th 2001 Occupation: Student Location: Oxford, England
This should be in "Editing".

In multiplayer maps, the env_cycler is probably the most commonly used entity for this job. It's not without its problems though - normal cyclers (not my special gmdm2 ones :biggrin: ) will bleed black/yellow blood when shot, and advance a sequence/frame in animation. Using a cycler switches it between single-frame advance and normal animation.

Monster_generic or monster_furniture might also do the job.
Re: Models.. Like the Skeleton Posted by G4MER on Mon Nov 3rd 2003 at 10:08am
G4MER
2460 posts
Posted 2003-11-03 10:08am
G4MER
floaty snark rage
member
2460 posts 360 snarkmarks Registered: Sep 6th 2003 Location: USA
I dont want it to move.. I just want it to lie there and look pretty.. I map for CS, not HL.

I am going to make little boxes in the wall where the Skeletons can lie and be seen from flickering candle light.

($)
Re: Models.. Like the Skeleton Posted by Gollum on Mon Nov 3rd 2003 at 10:26am
Gollum
1268 posts
Posted 2003-11-03 10:26am
Gollum
member
1268 posts 525 snarkmarks Registered: Oct 26th 2001 Occupation: Student Location: Oxford, England
I think the most reliable way is still to use a cycler. If the model doesn't HAVE any animation sequences then the effect will be more convincing. Also, if you keep them out of the reach of players, you can stop any of the bugs that I mentioned.
Re: Models.. Like the Skeleton Posted by scary_jeff on Mon Nov 3rd 2003 at 11:40am
scary_jeff
1614 posts
Posted 2003-11-03 11:40am
1614 posts 191 snarkmarks Registered: Aug 22nd 2001
All you need to do is use an env_sprite. Set the sprite name to the model you want (e.g. models/skeleton.mdl), and it should work. The model will be located such that the center of it's base is at the center of the sprite entity, so if you want a skeleton on the floor, the sprite entity needs to be half in the floor. You will also need to place a clip brush over the model as it will not be solid in the game (you will have to tweak the size of the clip brush to get it right). I think this method even shows animations but I'm not sure about that.
Re: Models.. Like the Skeleton Posted by Gollum on Mon Nov 3rd 2003 at 12:33pm
Gollum
1268 posts
Posted 2003-11-03 12:33pm
Gollum
member
1268 posts 525 snarkmarks Registered: Oct 26th 2001 Occupation: Student Location: Oxford, England
Ack, ignore me - I've been messing around with cyclers for too long :wink: Jeff has the answer.
Re: Models.. Like the Skeleton Posted by fishy on Mon Nov 3rd 2003 at 8:18pm
fishy
2623 posts
Posted 2003-11-03 8:18pm
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
any time i've tried to set a sprites name to a model, hammer crashes on me. :confused: maybe it just doesn't work in tfc.
Re: Models.. Like the Skeleton Posted by Reign on Mon Nov 3rd 2003 at 9:03pm
Reign
17 posts
Posted 2003-11-03 9:03pm
Reign
member
17 posts 2 snarkmarks Registered: Oct 28th 2003
thanks for the help guys..the skeletons are going to go in a map that I am working on..Money comes up with the ideas and I make it happen

Reign
Re: Models.. Like the Skeleton Posted by Orpheus on Mon Nov 3rd 2003 at 9:06pm
Orpheus
13860 posts
Posted 2003-11-03 9:06pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
Reign said:
thanks for the help guys..the skeletons are going to go in a map that I am working on..Money comes up with the ideas and I make it happen

Reign
giggles

the sexual inuendo was up in "general" you shouldnt bring it down to "editing" :dodgy:
Re: Models.. Like the Skeleton Posted by Cash Car Star on Mon Nov 3rd 2003 at 11:23pm
Cash Car Star
1260 posts
Posted 2003-11-03 11:23pm
1260 posts 345 snarkmarks Registered: Apr 7th 2002 Occupation: post-student Location: Connecticut (sigh)
scary_jeff said:
All you need to do is use an env_sprite. Set the sprite name to the model you want (e.g. models/skeleton.mdl), and it should work. The model will be located such that the center of it's base is at the center of the sprite entity, so if you want a skeleton on the floor, the sprite entity needs to be half in the floor. You will also need to place a clip brush over the model as it will not be solid in the game (you will have to tweak the size of the clip brush to get it right). I think this method even shows animations but I'm not sure about that.
I think it's actually the origin of the model that gets put on the point of the env_sprite, which just so happens to be the middle of the base quite often, but there's a few oddballs where that's not the case.

Also, and I could be wrong, but I believe the point of the sprite entity must be visible for the model to show, so if it's in a floor, you're going to want to entity the floor around that area or something so that it doesn't block vis from seeing the point.
Re: Models.. Like the Skeleton Posted by Hornpipe2 on Tue Nov 4th 2003 at 12:27am
Hornpipe2
636 posts
Posted 2003-11-04 12:27am
636 posts 123 snarkmarks Registered: Sep 7th 2003 Occupation: Programmer Location: Conway, AR, USA
...

env_sprites can load models?

Learn something new every day. That's only the coolest feature I've heard of in a while.
Re: Models.. Like the Skeleton Posted by Cash Car Star on Tue Nov 4th 2003 at 12:54am
Cash Car Star
1260 posts
Posted 2003-11-04 12:54am
1260 posts 345 snarkmarks Registered: Apr 7th 2002 Occupation: post-student Location: Connecticut (sigh)
Almost anything that calls for a sprite can load a model. The one other major use of model over sprite is if you're setting a laser endsprite.
Re: Models.. Like the Skeleton Posted by Reign on Tue Nov 4th 2003 at 2:21am
Reign
17 posts
Posted 2003-11-04 2:21am
Reign
member
17 posts 2 snarkmarks Registered: Oct 28th 2003
Orpheus said:
Reign said:
thanks for the help guys..the skeletons are going to go in a map that I am working on..Money comes up with the ideas and I make it happen

Reign
giggles

the sexual inuendo was up in "general" you shouldnt bring it down to "editing" :dodgy:
there was no sexual inuendo mentioned here not that I can think of..

I would post some screens of my map but I don't know how..I think this is the wrong section for that anyways.

giggle
Re: Models.. Like the Skeleton Posted by Orpheus on Tue Nov 4th 2003 at 2:24am
Orpheus
13860 posts
Posted 2003-11-04 2:24am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
Reign said:
Orpheus said:
Reign said:
thanks for the help guys..the skeletons are going to go in a map that I am working on..Money [color=gold]comes up with the ideas and I make it happen[/color]

Reign
giggles

the sexual inuendo was up in "general" you shouldnt bring it down to "editing" :dodgy:
there was no sexual inuendo mentioned here not that I can think of..

I would post some screens of my map but I don't know how..I think this is the wrong section for that anyways.

giggle
no, no inuendo at all :smile:

if money has a pit, use his and just post the link under your name.. easy enuff.
Re: Models.. Like the Skeleton Posted by FIDDLER on Tue Nov 4th 2003 at 6:46pm
FIDDLER
39 posts
Posted 2003-11-04 6:46pm
FIDDLER
member
39 posts 14 snarkmarks Registered: Feb 4th 2003
Why not use an item_generic?
Re: Models.. Like the Skeleton Posted by Reign on Wed Nov 5th 2003 at 9:41am
Reign
17 posts
Posted 2003-11-05 9:41am
Reign
member
17 posts 2 snarkmarks Registered: Oct 28th 2003
FIDDLER said:
Why not use an item_generic?
explain please..
Re: Models.. Like the Skeleton Posted by Gollum on Wed Nov 5th 2003 at 9:49am
Gollum
1268 posts
Posted 2003-11-05 9:49am
Gollum
member
1268 posts 525 snarkmarks Registered: Oct 26th 2001 Occupation: Student Location: Oxford, England
There's no such thing as an item_generic. I think Fiddler intends the monster_generic entity.
Re: Models.. Like the Skeleton Posted by FIDDLER on Wed Nov 5th 2003 at 3:40pm
FIDDLER
39 posts
Posted 2003-11-05 3:40pm
FIDDLER
member
39 posts 14 snarkmarks Registered: Feb 4th 2003
Perhaps that's only in the OP4 cfg?
Re: Models.. Like the Skeleton Posted by FIDDLER on Wed Nov 5th 2003 at 3:51pm
FIDDLER
39 posts
Posted 2003-11-05 3:51pm
FIDDLER
member
39 posts 14 snarkmarks Registered: Feb 4th 2003

@PointClass base(Weapon, Targetx) = item_generic : "Generic scenery item"

[

model(studio) : "Model" : "models/egg.mdl"

sequencename(string) : "Sequence Name" : "idle"

skin(integer) : "Skin" : 0

body(integer) : "Body" : 0

With an item_generic you can place any model into the map without having any problems. Most models (i.e. a trash can, light pole) simply leave at idle. If you want to place a scientist that doesn't react to the environment then you would have him as idle etc. You can even place them in thier other positions (i.e. dead on table etc.).

Re: Models.. Like the Skeleton Posted by Hornpipe2 on Wed Nov 5th 2003 at 6:43pm
Hornpipe2
636 posts
Posted 2003-11-05 6:43pm
636 posts 123 snarkmarks Registered: Sep 7th 2003 Occupation: Programmer Location: Conway, AR, USA
FIDDLER said:
[size=13]
@PointClass base(Weapon, Targetx) = item_generic : "Generic scenery item"

[

model(studio) : "Model" : "models/egg.mdl"

sequencename(string) : "Sequence Name" : "idle"

skin(integer) : "Skin" : 0

body(integer) : "Body" : 0

With an item_generic you can place any model into the map without having any problems. Most models (i.e. a trash can, light pole) simply leave at idle. If you want to place a scientist that doesn't react to the environment then you would have him as idle etc. You can even place them in thier other positions (i.e. dead on table etc.).

[/size]
...Where did you get that from?
Re: Models.. Like the Skeleton Posted by Cash Car Star on Wed Nov 5th 2003 at 6:55pm
Cash Car Star
1260 posts
Posted 2003-11-05 6:55pm
1260 posts 345 snarkmarks Registered: Apr 7th 2002 Occupation: post-student Location: Connecticut (sigh)
item_generic is, as you guessed, op4 only.
Re: Models.. Like the Skeleton Posted by FIDDLER on Wed Nov 5th 2003 at 8:17pm
FIDDLER
39 posts
Posted 2003-11-05 8:17pm
FIDDLER
member
39 posts 14 snarkmarks Registered: Feb 4th 2003
Add that to your Half Life cfg and see if it works :razz: .
Re: Models.. Like the Skeleton Posted by Gollum on Wed Nov 5th 2003 at 10:58pm
Gollum
1268 posts
Posted 2003-11-05 10:58pm
Gollum
member
1268 posts 525 snarkmarks Registered: Oct 26th 2001 Occupation: Student Location: Oxford, England
Why on earth would you want to do that :confused:
Re: Models.. Like the Skeleton Posted by fraggard on Thu Nov 6th 2003 at 2:11am
fraggard
1110 posts
Posted 2003-11-06 2:11am
fraggard
member
1110 posts 220 snarkmarks Registered: Jul 8th 2002 Occupation: Student Location: Bangalore, India
You can't place entries at random into the FGD :razz: . The game won't identify them, primarily because there's no corresponding class created for the entity in the game itself.

Like Gollum said, you might not want to do that :smile:
Re: Models.. Like the Skeleton Posted by Reign on Thu Nov 6th 2003 at 7:40am
Reign
17 posts
Posted 2003-11-06 7:40am
Reign
member
17 posts 2 snarkmarks Registered: Oct 28th 2003
not to sound like a newbie but what is OP4 and FGD and what the heck are yall talking about?

I'm so confused.

reign
Re: Models.. Like the Skeleton Posted by Gollum on Thu Nov 6th 2003 at 9:32am
Gollum
1268 posts
Posted 2003-11-06 9:32am
Gollum
member
1268 posts 525 snarkmarks Registered: Oct 26th 2001 Occupation: Student Location: Oxford, England
"Op4" is "Opposing Forces", a single- and multi-player modification for Half-Life made by Gearbox Software. Basically, it has a new storyline and some different weapons.

An FGD is a game data file (heh, I always felt it should be GDF). It tells Hammer what entities it can make, and what their properties are. It doesn't do anything else - it won't create new types of entities for you, only make Hammer aware that they exist.
Re: Models.. Like the Skeleton Posted by FIDDLER on Thu Nov 6th 2003 at 4:21pm
FIDDLER
39 posts
Posted 2003-11-06 4:21pm
FIDDLER
member
39 posts 14 snarkmarks Registered: Feb 4th 2003
To add on what you stated about Opposing Force...

It has ALL of the original Half Life weapons + 9 additional weapons. Multiplayer is the same as HLDM except OP4 has those additional weapons and maps created by Gearbox as "core" maps. OP4 also has all the "core" HLDM maps with the new weapons layed about. The long jump is still in the game.

Then there is CTF which currently doesn't run under the Steam platform :sad: .

I wonder why HLDM is still more played that OP4??? All of the OP4 servers even have the bunnyhop plugin installed. Things that make you go HMMM...
Re: Models.. Like the Skeleton Posted by Gollum on Thu Nov 6th 2003 at 6:31pm
Gollum
1268 posts
Posted 2003-11-06 6:31pm
Gollum
member
1268 posts 525 snarkmarks Registered: Oct 26th 2001 Occupation: Student Location: Oxford, England
More <SPAN style="FONT-FAMILY: Symbol; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-char-type: symbol; mso-symbol-font-family: Symbol">[color=white]? [size=13]better :popcorn: [/color][/size]</SPAN>
Re: Models.. Like the Skeleton Posted by Leperous on Thu Nov 6th 2003 at 6:40pm
Leperous
3382 posts
Posted 2003-11-06 6:40pm
Leperous
Creator of SnarkPit!
member
3382 posts 1635 snarkmarks Registered: Aug 21st 2001 Occupation: Lazy student Location: UK
Entities are defined by the game, not by the FGD- it's like making up a 'whatchamacallitmeter' and putting it on your car's dashboard, if it's not plugged into something existing in the engine/whatever then it won't work!
Re: Models.. Like the Skeleton Posted by $loth on Mon May 3rd 2004 at 6:53pm
$loth
2256 posts
Posted 2004-05-03 6:53pm
$loth
member
2256 posts 292 snarkmarks Registered: Feb 27th 2004 Occupation: Student Location: South England
<!-- ZoneLabs Popup Blocking Insertion -->OK, I found this by searching the forums, im trying to place in a model in a map, so i put in the env_sprite, and changed the sprite to winebottle.mdl, i clicky on the 'x' in the corner and hammer crashes!
can anyone help me, am i not using the right point entity.
i am using VHE 3.4 with the fgd's that come with it.
Re: Models.. Like the Skeleton Posted by omegaslayer on Mon May 3rd 2004 at 8:43pm
omegaslayer
2481 posts
Posted 2004-05-03 8:43pm
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
$loth said:
<!-- ZoneLabs Popup Blocking Insertion -->i am using VHE 3.4 with the fgd's that come with it.
That might be your problem there, get the "newer" fgds.
Re: Models.. Like the Skeleton Posted by Vash on Mon May 3rd 2004 at 8:44pm
Vash
1206 posts
Posted 2004-05-03 8:44pm
Vash
member
1206 posts 181 snarkmarks Registered: Feb 4th 2003 Occupation: Afraid of Spiders
Very, Very nice $loth. A thread from November.
Re: Models.. Like the Skeleton Posted by Gorbachev on Mon May 3rd 2004 at 9:02pm
Gorbachev
1569 posts
Posted 2004-05-03 9:02pm
1569 posts 264 snarkmarks Registered: Dec 1st 2002 Location: Vancouver, BC, Canada
It's alright, he's asking about the same thing in this thread. But yes, the .fgd files and tools included with Hammer are very, very old. (DoD 2.0b anyone?) Get newer ones.
Re: Models.. Like the Skeleton Posted by $loth on Tue May 4th 2004 at 6:37am
$loth
2256 posts
Posted 2004-05-04 6:37am
$loth
member
2256 posts 292 snarkmarks Registered: Feb 27th 2004 Occupation: Student Location: South England
<!-- ZoneLabs Popup Blocking Insertion -->[quote]
That might be your problem there, get the "newer" fgds.
[/quote]

it worked!!!! it worked!!!! thanx omega slayer, and yes vash, a thred from november :biggrin: [ I use the search function :razz: ]

<!-- ZoneLabs Popup Blocking Insertion -->
Re: Models.. Like the Skeleton Posted by fishy on Tue May 4th 2004 at 6:59am
fishy
2623 posts
Posted 2004-05-04 6:59am
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
sloth, if your map is for TFC, then that's why the sprite is crashing hammer when you give it a path to a .mdl

if so, then this thread may help.
Re: Models.. Like the Skeleton Posted by $loth on Thu May 6th 2004 at 3:20pm
$loth
2256 posts
Posted 2004-05-06 3:20pm
$loth
member
2256 posts 292 snarkmarks Registered: Feb 27th 2004 Occupation: Student Location: South England
<!-- ZoneLabs Popup Blocking Insertion -->Nope fishy, its for HLDM for the comp, I have a clever idea but it won't be in 100% support of people, because i will be using normal hl models like barney! and the chicken from cs.
Re: Models.. Like the Skeleton Posted by $loth on Fri May 14th 2004 at 6:03am
$loth
2256 posts
Posted 2004-05-14 6:03am
$loth
member
2256 posts 292 snarkmarks Registered: Feb 27th 2004 Occupation: Student Location: South England
<!-- ZoneLabs Popup Blocking Insertion -->OK, so i downloaded and put in some tree models, yet when its compiled it has 'blue stuff' [thats the best way i could describe it] around it, i made it using the 'cycler' entity, should i of used the cycler_sprite?
Re: Models.. Like the Skeleton Posted by Orpheus on Fri May 14th 2004 at 8:20am
Orpheus
13860 posts
Posted 2004-05-14 8:20am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
Vash said:
Very, Very nice $loth. A thread from November.
LOL, and what else would you expect, with a search option that supposed to scan the whole database..

you guys.. without you, my diaper budget would be so small :wtf:
Re: Models.. Like the Skeleton Posted by $loth on Tue May 18th 2004 at 2:12pm
$loth
2256 posts
Posted 2004-05-18 2:12pm
$loth
member
2256 posts 292 snarkmarks Registered: Feb 27th 2004 Occupation: Student Location: South England
So now that i have got the hang of placing a model into a map, there is still 1 prob which needs tweaking, the blue stuff, i have some tree models and around the leaves are there is blue when i compile, what setting should i have to get rid of this?
Re: Models.. Like the Skeleton Posted by fishy on Tue May 18th 2004 at 7:04pm
fishy
2623 posts
Posted 2004-05-18 7:04pm
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
the setting to render the blue as transparent is built into the model itself. DoD 1.1 was the first mod to introduce the new feature of transparency in models, by updating the hw.dll and the sw.dll . the steam installation also has the update.

for people without steam or DoD1.1, replacing your existing dll's with the new ones is meant to make the models render correctly, but i couldn't get it to work on my old hl install. :sad: on another thread, Pepper posted this link to the dll's, and i assume (as i dont speak french) how to do it right.

has anyone else had any success at making it work on an old hl install? Myrk maybe? i know you wanted to try.
Re: Models.. Like the Skeleton Posted by scary_jeff on Tue May 18th 2004 at 7:51pm
scary_jeff
1614 posts
Posted 2004-05-18 7:51pm
1614 posts 191 snarkmarks Registered: Aug 22nd 2001
The problem he is describing is when a texture has been made with blue parts that aren't pure blue due to some kind of filter being applied to the texture after the addition of blue, and results in blue bits round the edges of masked areas. There isn't really a solution to this other than to edit the texture so that it no longer contains any obvious blue bits.
Re: Models.. Like the Skeleton Posted by fishy on Tue May 18th 2004 at 8:18pm
fishy
2623 posts
Posted 2004-05-18 8:18pm
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
possibly, but i assumed that the tree models $loth downloaded were from this site, which dont suffer from that problem :biggrin:
Re: Models.. Like the Skeleton Posted by Gorbachev on Wed May 19th 2004 at 5:34am
Gorbachev
1569 posts
Posted 2004-05-19 5:34am
1569 posts 264 snarkmarks Registered: Dec 1st 2002 Location: Vancouver, BC, Canada
Orpheus said:
Vash said:
Very, Very nice $loth. A thread from November.
LOL, and what else would you expect, with a search option that supposed to scan the whole database..

you guys.. without you, my diaper budget would be so small :wtf:
I guess we can also Depend on you.
Re: Models.. Like the Skeleton Posted by Orpheus on Wed May 19th 2004 at 9:04am
Orpheus
13860 posts
Posted 2004-05-19 9:04am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
Gorbachev said:
Orpheus said:
Vash said:
Very, Very nice $loth. A thread from November.
LOL, and what else would you expect, with a search option that supposed to scan the whole database..

you guys.. without you, my diaper budget would be so small :wtf:
I guess we can also Depend on you.
and the crowd groans in 3 part harmony