Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 13:53
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 5,207 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
fake lights on view entities #380354
08/16/11 09:29
08/16/11 09:29
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
A long time ago, with C-Script, I used to make weapons as a view entities. Everything worked perfectly, but weapons really missed dynamic lights... in the time back then, I used to use downwards trace with SCAN_TEXTURE, and then I was setting "entity.blue" to "tex_color". So, weapon was changing it's colors depending on the ground under player's feet. That worked perfect for me. Now, I was trying to convert my old script from c-script into lite-c, everything works perfect, but not that "tex_color" thing... I simply can't make weapon to change it's colors depending on the color below the player, may be it doesn't work with lite-c? How to make this? Plus, I found out that view entity's lightning is affected by suns light, so my second question is that possible to get static and dynamic lightnings on view entity?


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: fake lights on view entities [Re: 3run] #380356
08/16/11 10:55
08/16/11 10:55
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
You can use tex_light instead, I believe. It's undocumented however.
What I don't believe is someone is actually still using view entity to show weapon, why not world entity? wink

Re: fake lights on view entities [Re: bart_the_13th] #380358
08/16/11 11:01
08/16/11 11:01
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
I'm using world entities for my project, I'm just playing around with this one tongue
Plus, the movement of the weapon with my view entity looks so attractive for me ^^

Edit: kk, so "tex_light" doesn't work as "tex_color" used to...
I have one small dynamic light (light blue) on the block with default texture.
But weapons color is always dark blue.. whatever I move...


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: fake lights on view entities [Re: 3run] #380386
08/16/11 17:12
08/16/11 17:12
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
So? Does anyone have an idea how to solve this? tex_color doesn't seems to work any more.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1