Sprite Problem Created 16 years ago2008-04-28 09:57:11 UTC by Striker Striker

Created 16 years ago2008-04-28 09:57:11 UTC by Striker Striker

Posted 16 years ago2008-04-28 09:57:11 UTC Post #249310
Hi ! I think I've got a problem . I'm trying to add sprites ( and env_glow) in my map and it seems it doesn't "want" to work . I checked the "start on " flag . Nothing . I tried with the "trigger_auto" and it really doesn't work. I must specify that I'm mapping for Sven Co-Op .
Can this be a Sven Co-Op bug ? Did I do something wrong ?
Striker StrikerI forgot to check the oil pressure
Posted 16 years ago2008-04-28 10:31:54 UTC Post #249312
What do you mean it doesn't work? Do you get any error, does it show up at all? Elaborate.
Posted 16 years ago2008-04-28 10:41:42 UTC Post #249315
It doesn't give me an error . It simply doesn't show up .
Striker StrikerI forgot to check the oil pressure
Posted 16 years ago2008-04-28 10:51:34 UTC Post #249316
Never used Sven-co-op, anyway, I would insert a sprite like this:

Insert a env_sprite, in its settings set up the path to your sprite, set "Render Mode" to Additive, make sure "FX Amount" is 255.
Posted 16 years ago2008-04-28 10:54:36 UTC Post #249318
If that doesn't work, post the map in the Problem Maps section of the map vault.
Oskar Potatis Oskar Potatis🦔
Posted 16 years ago2008-04-28 10:56:50 UTC Post #249319
Thank you very much . Actually I should have thought twice before posting because I encounter this error almost all the time . My default FX amount is 0. How can I change this ? I think it's the FGD's problem .
Striker StrikerI forgot to check the oil pressure
Posted 16 years ago2008-04-28 12:07:53 UTC Post #249321
open up the svencoop fgd in notepad, and press ctrl-F and type in 'FX' or 'env_sprite' And change the defauly to 90 or whatever.
Unbreakable UnbreakableWindows 7.9 Rating!
Posted 16 years ago2008-04-28 12:22:36 UTC Post #249323
open up the svencoop fgd in notepad, and press ctrl-F and type in 'FX' or 'env_sprite' And change the defauly to 90 or whatever.
Not that easy, env_sprite uses the baseclass RenderFields.

This could work:
Note that The Sven Coop FGD might look different.

Replace [quote]@PointClass sprite() base(Targetname, RenderFields, Angles) size(-4 -4 -4, 4 4 4) = env_sprite : "Sprite Effect"
[
framerate(string) : "Framerate" : "10.0"
model(sprite) : "Sprite Name" : "sprites/glow01.spr"
scale(string) : "Scale" : ""
spawnflags(flags) =
[
	1: "Start on" : 0
	2: "Play Once" : 0
]
][/quote]

with

[quote]@PointClass sprite() base(Targetname, RenderFxChoices, Angles) size(-4 -4 -4, 4 4 4) = env_sprite : "Sprite Effect"
[
framerate(string) : "Framerate" : "10.0"
model(sprite) : "Sprite Name" : "sprites/glow01.spr"
scale(string) : "Scale" : ""
spawnflags(flags) =
[
	1: "Start on" : 0
	2: "Play Once" : 0
]
rendermode(choices) : "Render Mode" : 0 =
[
	0: "Normal"
	1: "Color"
	2: "Texture"
	3: "Glow"
	4: "Solid"
	5: "Additive"
]
renderamt(integer) : "FX Amount (1 - 255)" : "0"
rendercolor(color255) : "FX Color (R G B)" : "0 0 0"
][/quote]
Oskar Potatis Oskar Potatis🦔
Posted 16 years ago2008-04-28 12:23:01 UTC Post #249324
ah I see.. sorry then.. never had an fgd opened in front of me, at school.
Unbreakable UnbreakableWindows 7.9 Rating!
Posted 16 years ago2008-04-28 12:29:00 UTC Post #249325
The changes I made in the code I wrote:
@PointClass sprite() base(Targetname, RenderFields, Angles) size(-4 -4 -4, 4 4 4) = env_sprite : "Sprite Effect"
became
@PointClass sprite() base(Targetname, RenderFxChoices, Angles) size(-4 -4 -4, 4 4 4) = env_sprite : "Sprite Effect"
and
2: "Play Once" : 0
]
]
became
2: "Play Once" : 0
]
rendermode(choices) : "Render Mode" : 0 =
[
0: "Normal"
1: "Color"
2: "Texture"
3: "Glow"
4: "Solid"
5: "Additive"
]
renderamt(integer) : "FX Amount (1 - 255)" : "0"
rendercolor(color255) : "FX Color (R G B)" : "0 0 0"

]
I haven't tested it.
Oskar Potatis Oskar Potatis🦔
Posted 16 years ago2008-04-28 16:13:19 UTC Post #249341
Then it's really easier to find it out myself :biggrin: . No big deal ...
Striker StrikerI forgot to check the oil pressure
Posted 16 years ago2008-04-28 16:21:44 UTC Post #249345
You do know that an fx amount of 0 means totally invisible and 255 is fully visible.
The Mad Carrot The Mad CarrotMad Carrot
You must be logged in to post a response.