where can i find .SPR ?????

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Mistab33n
Lance Corporal
Posts: 15
Joined: Wed Jun 11, 2003 2:45 pm

where can i find .SPR ?????

Post by Mistab33n »

when i open the script for smokenades in sh i see this line that uses an .spr file, but i cand find them nowhere, someone knows where i can find these

Code: Select all

client
	{
		originemitter smoke
		(
			spawnrate 30
			model smokegrenade_allied.spr <==CANT FIND THERE NOWHERE
			color 1 1 1
			spritegridlighting
			alpha .85
			bouncefactor 0.8
			life 2.25 3.5
			scalerate .8
			velocity 24
			randvelaxis crandom 4 crandom 4 4
			spin 0.133
			angles 0 0 random 360
			avelocity 0 0 crandom 20
			scalemin 0.1
			scalemax 0.25
			fadedelay 2
			fadein 0.25
		)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

sprite

Post by tltrude »

SPR is short for sprite. I also can't find them--they may be in the game engine.
Tom Trude,

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

The .spr extension is very misleading: it tells the game the given texture has to be rendered as a sprite.

A file smokegrenade_allied.spr doesn't exist. The game just uses the texture smokegrenade_allied (probably in sprites.shader).
Image
Mistab33n
Lance Corporal
Posts: 15
Joined: Wed Jun 11, 2003 2:45 pm

Post by Mistab33n »

jv_map wrote:The .spr extension is very misleading: it tells the game the given texture has to be rendered as a sprite.

A file smokegrenade_allied.spr doesn't exist. The game just uses the texture smokegrenade_allied (probably in sprites.shader).
and how do you create a new one then?
i saw that shader also but i couldnt find the shader for that sprite :(
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

new

Post by tltrude »

I don't know if you can, but "model vsssource.spr" is used in a lot of smoke tiki's.
Tom Trude,

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yes you can make as many new sprites as you want. Just make a texture and a shader for it (with the spriteGen command). Then in your .tik file append .spr to the texture name.
Image
Mistab33n
Lance Corporal
Posts: 15
Joined: Wed Jun 11, 2003 2:45 pm

Post by Mistab33n »

jv, your a mod here, it would be verry cool if there where more tutorials at things people use alot, like the triggers, more ai options, the spr, importing a model and stuff like that
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Looks like I'll be busy then :roll: :shock:
Image
Mistab33n
Lance Corporal
Posts: 15
Joined: Wed Jun 11, 2003 2:45 pm

Post by Mistab33n »

jv_map wrote:Looks like I'll be busy then :roll: :shock:
i didn't say you have to do it, but next time someone asks something and someone can answer it you might as the people to write a tut about it
Post Reply