Jump to content

Recommended Posts

Posted

In Half-Life, to make a sprite stay static? Ie when the player moves about the sprite always follows, I'm sure I read somewhere that you can freeze it but I can't find anything now. I'm trying to make animated TV screens.. heh.

Posted

dont you make tv screens with an animated texture?

You're limited to 10 frames and you have very little control over the speed of the animation...

Posted

Success!

Here I made a simple slideshow of the hgrunt run animation (using an old reskinned model) and saved it as an spr file:

video_test.gif

I then set about using the method in Jinx's tutorial to make the sprite a fixed position variant and applied it to the screen in game using a normal env_sprite:

pb_videotest_huh.jpg

As you can see this doesn't look right, I rotated the angle of the sprite to match up with the desk and computer and that's what happened. So I simply moved it back to 0 degrees (360) and moved the computer to the end of the desk:

pb_videotest1.jpg

This isn't what I wanted though so I realised that in order to make the screen act as it should in the middle of the desk I had to rotate the whole map round so that the sprite stayed at 0 degrees but was in the position I wanted it to be in:

pb_videotest_gotcha.jpg

Obviously this means that you can only put this sprite and any others at a wall by 0 degrees limiting where you can apply it, although you can produce several versions of the sprite and rotate the original images around so they show up right on other angles. Why the HL engine does this is beyond me but I like to think everything has a workaround.

So that's it for this round, while most people are mucking about with source I'm trying to do things with the original game that hasn't been seen before so I can add new elements to the gameplay.

In the next addition I plan to record a demo of me playing a game and have it converted to frames and resized as another sprite test :)

Posted

I'm trying to do things with the original game that hasn't been seen before so I can add new elements to the gameplay.

No offence mate, but fixed axis sprites have been done plenty times in HL1, and having a sprite animation as a screensaver on a computer in your map is hardly adding new elements to the gameplay :P Still, good on you for persevering and try to do things the best way you can - I'm sure many people would simply have opted for a picture or animated texture instead.

Posted

i can only give you a link to a tool in german language... http://www.slackiller.com/hlprograms/spritemage.zip

the options are as follows:

verhalten des sprites= sprite behavior

* parallel upright: sprite spins on the x axis but is locked on y and z.

* facing upright: when getting closer to sprite it turns away from the player

* parralel: default mode, sprite always faces the player

* oriented: the sprite is locked on every axis and is thereby static and does not rotate around as you move.

datei= file

ändern= apply changes

ende = end/cancel

Posted

I'm trying to do things with the original game that hasn't been seen before so I can add new elements to the gameplay.

No offence mate, but fixed axis sprites have been done plenty times in HL1, and having a sprite animation as a screensaver on a computer in your map is hardly adding new elements to the gameplay :P Still, good on you for persevering and try to do things the best way you can - I'm sure many people would simply have opted for a picture or animated texture instead.

The screensaver is just a test, I want to add CCTV camera screens with some action on it ie when you press a button you can see a couple of guards running towards your position. Ok so it's not exactly changing gameplay but it does make you think that the screen is actually transmitting a live video feed as oppose to just a block with a static picture of the same thing, like what you see in HL2. I had an idea last night for a .dem file of a group of marines (including a first person view of the player) fighting some sort of enemy and then dying would be a good touch, as if each of the marines had a camera attatched to their helmet...

Peris: do you think you could try and work out how you rotated them? it would be massively helpful.

Thanks :)

×
×
  • Create New...