Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [Solved] Env_sprite via mapadd  (Read 1056 times)

0 Members and 1 Guest are viewing this topic.

Offline Pepsifan04

  • *
  • *
  • +12% chance to make useful post
  • Pepsifan04 might someday be someone...Pepsifan04 might someday be someone...Pepsifan04 might someday be someone...Pepsifan04 might someday be someone...
    • Smod: CryLife
[Solved] Env_sprite via mapadd
« on: May 20, 2014, 07:41:47 PM »
Quote
ok, hard question time again.

Can you add env_sprite via mapadd?
I've been trying to that but it seems that I can't display the sprite.
It works fine when I'm adding env_sprite with hammer, so It's not the sprite itself.
Source finds the ent, and I can even execute sprite related commands like "showsprite" ect, I'm just missing the sprite texture itself.
Fixed.
I was missing "scale" variable, the code now works via mapadd.
you still need to "showsprite" via console for the sprite to show



Code: [Select]
"env_sprite"
{
"keyvalues"
{
"origin" "245 -992 288"
"targetname" "slot_2"
"renderfx" "0"
"rendermode" "9"
"renderamt" "255"
"rendercolor" "255 255 255"
"disablereceiveshadows" "1"
"framerate" "0"
"scale" "0.25"
"model" "overlays/crylife/sprites/sprite.vmt"
"glowproxysize" "0"
}
}
« Last Edit: May 21, 2014, 09:31:34 PM by Pepsifan04 »
DROP DATABASE bsnooch

Offline Pepsifan04

  • *
  • *
  • +12% chance to make useful post
  • Pepsifan04 might someday be someone...Pepsifan04 might someday be someone...Pepsifan04 might someday be someone...Pepsifan04 might someday be someone...
    • Smod: CryLife
Re: [Help] Env_sprite via mapadd
« Reply #1 on: May 21, 2014, 09:26:59 PM »
I've solved it.
I was missing "scale" variable.

Fixed code in first post.
DROP DATABASE bsnooch

Offline Bridwelll

  • *
  • +1% chance to make useful post
  • Bridwelll has no influence.
Re: [Solved] Env_sprite via mapadd
« Reply #2 on: September 23, 2014, 07:36:33 AM »
Post this simplification Applicable true.