April 30 2025 17:09:42
Navigation
· Home
· Articles
· Downloads
· FAQ
· Discussion Forum
· Web Links
· News Categories
· Contact Me
· Photo Gallery
· Search
· Gameservers
Languages
Users Online
· Guests Online: 3

· Members Online: 0

· Total Members: 1,143
· Newest Member: k4m1n0
Teamspeak 3
Last Seen Users
· GONZO11:01:38
· Intruder14:04:41
· Homi22:18:19
· Silent Bob 1 day
· WEZ 1 day
· desintegrator 1 day
· Sully 5 days
· SGT PEPPER 6 days
· scottisch 6 days
· xhc 1 week
· The ACE 1 week
· Brody 2 weeks
· KostiCZ 2 weeks
· The General 2 weeks
· VictorMyson 2 weeks

View Thread: ingame light
Vietcong.Info » Vietcong General Discussion » Maps & Mapping
Who is here? 1 Guest
Current Rating: (Total: 0 ratings)  
 Print Thread
ingame light
marvicisko
Hello,

I have a question. How to create ingame light? I seen it in multiplayer maps and in singleplayer (night jungle and tunnel map). Ty for answer.
Default key to use is L.
Edited by marvicisko on 04-07-2013 15:22
 
Silent Bob
You can define that in the scripts when you make a multiplayer map.
Edited by Silent Bob on 04-07-2013 22:32
 
www.vietcong.info
KostiCZ
In your coop.c script find client_tick section and add there

SC_PC_EnableFlashLight(TRUE);

Better is to check if it is first time passed and enable it only once, not every tick. You can do it with simple condition - define variable cl_firsttick=TRUE and then in client tick section check...


case SC_NET_MES_CLIENT_TICK:
...

if (cl_firsttick==TRUE){
cl_firsttick=FALSE;
SC_PC_EnableFlashLight(TRUE);
}
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
  x 2  x 1
 
Teamrespawn.cz
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Ingame Serverliste Allgemeines Diskussionsforum 1 03-08-2015 00:47
Weather changing (sky light)? Maps & Mapping 5 04-12-2012 20:25
Flash Light Maps & Mapping 12 30-12-2011 11:22
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Render time: 0.23 seconds - 52 Queries 5,852,853 unique visits