Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/20/26 18:18
Ranger by Robert Pardo - now for Zorro
by Smallz. 06/20/26 11:23
Z12 live performance
by jcl. 06/19/26 11:21
Z9 getting Error 058
by jcl. 06/16/26 09:51
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 8,750 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 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