Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,055 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Theif like sneaking using dynamic light source [Re: tindust] #182512
02/08/08 16:52
02/08/08 16:52
Joined: Feb 2008
Posts: 337
V
Vadim647 Offline
Senior Member
Vadim647  Offline
Senior Member
V

Joined: Feb 2008
Posts: 337
I have 2 suggestions:
1. Use c_scan(player.x,player.pan,vector(360,180,200),SCAN_LIGHTS) but this will work only with static lights.
2. For each li


I switched to other account since marth 2010. Guess which.
Re: Theif like sneaking using dynamic light source [Re: tindust] #182513
02/08/08 16:54
02/08/08 16:54
Joined: Feb 2008
Posts: 337
V
Vadim647 Offline
Senior Member
Vadim647  Offline
Senior Member
V

Joined: Feb 2008
Posts: 337
I have 2 suggestions:
1. Use c_scan(player.x,player.pan,vector(360,180,200),SCAN_LIGHTS) in players loop to detect static lights.
2. For each dynamic light use:
Code:

if(vec_dist(player.pos,my.pos)<200){stealth_trigger=0;}


only, and insert to players action loop:
Code:

stealth_trigger=clamp(stealth_trigger+0.1,0,1);


so, when far away from light, player will quickly gain stealth.
(sorry, have clicked wrong button once)


I switched to other account since marth 2010. Guess which.
Page 2 of 2 1 2

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