Gamestudio Links
Zorro Links
Newest Posts
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
phantom() not defined in indicators.c
by jcl. 08/07/26 11:45
Pause button for evaluation shell?
by jcl. 08/07/26 11:43
Accepting new programming clients
by AndrewAMD. 08/06/26 21:25
Fun Arcade Car Physics (nfs style)
by Ezzett. 08/02/26 21:11
ZorroGPT
by TipmyPip. 07/31/26 22:56
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (AndrewAMD, Quad, VizTra), 894 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ParkerBlair, JackWalker, clausoliver, riggi89, shuhari
19225 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