Custom .spr

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Custom .spr

Post by agentmad007 »

Hello

Image

I tried to alter the oceanspray.spr , but i cant get it work ....a Big white square appear on screen instead of the small effects i wanted to.

In a folder models/animate i got that :

Code: Select all

TIKI
setup
{
	scale 1.0
	path models/fx/dummy
	skelmodel dummy3.skd
}
 
init
{
	server  
	{
		classname effectentity
		notsolid
		rendereffects +dontdraw
	}
	client
	{

		//**********************
		cache bond_spray_bluea.spr
		//**********************

	}
}

animations
{
	idle dummy3.skc

	start dummy3.skc
	{
		server
		{
			last commanddelay 1 anim idle
		}

		client
		{
			//*****************
			//sound played here
			//*****************
				
				enter originspawn
			(
				spawnrate 0.00
				model bond_spray_bluea.spr

				count 1
				alpha 0.90
				color .8 .8 1

				scale 3.2
				life 1.09
				scalerate .2
				velocity 100.00
				friction 48

			)


		}
	}
}

//************************************
//***        IMPORTANT
//***     RENAME THE QUAKE-ED COMMENT
//***     IN CONJUNCTION WITH THE
//***  LD ENTITY MENU LAYOUT.DOC
//***   UP IN SOURCE SAFE!!!!!!!!!!!!
//************************************

/*QUAKED animate_fx_gatespray (0.0 0.5 0.5) (-8 -8 -8) (8 8 8)
description of effect to appear in entity dialog
*/
scripts/bond_effects.shader

Code: Select all

bond_spray_bluea
{
	cull none
	{
		map textures/bond_effects/bond_spray_bluea.tga
		blendFunc GL_ONE GL_ONE
		alphaGen vertex
		rgbGen vertex

	}
}
textures/bond_effects ==> the bond_spray_bluea.tga wich is the edited oceanspray.tga

I also tried with the oceanspray.tga and i still got this big bloody square

Any ideas ?

Thank you
Deadly and slient.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Try it with a smaller scale value?

You now have 3.2 which might be rather big :?
Image
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

There is nothing related with the scale even if i tried by curiosity though.Modifying the scale just bring a smaller blank square.

when i try the original oceanspray.spr it works fine.....
:oops:
Deadly and slient.
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

maybe the tga is in the wrong mode or wrong scale or something.

try just displaying the tga on a menu or whatever to see if it works:S
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

alpha

Post by tltrude »

Perhaps there is a missing alpha channel for your new tga.
Tom Trude,

Image
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

All the tga are in the right scale and they all have the right alpha channel, i checked them out again.I even tested individually each tga with the original spr and they worked properly.


SO the problem come out when i am using a custom .spr (the one above in other words)......

Wonder if whe can do custom spr.....cause i think i did everything the right way.
Deadly and slient.
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

im sure i used a custom.spr once..or maybe i had probs. rememebr tryign alot fo things. that was just for a shrink ray outa a gun. wanted a blob thing.

but in the end a got a floating blob thing, canbt u just model to a tga or somthign instead?


in the right folder?

tried without .spr on the end?
Post Reply