November 26 2024 08:35:12
Navigation
· Home
· Articles
· Downloads
· FAQ
· Discussion Forum
· Web Links
· News Categories
· Contact Me
· Photo Gallery
· Search
· Gameservers
Languages
Users Online
· Guests Online: 52

· Members Online: 0

· Total Members: 1,134
· Newest Member: Brody
Teamspeak 3
Last Seen Users
· hackepter10:05:25
· GONZO16:11:50
· Intruder16:38:33
· Sully 1 day
· desintegrator 2 days
· WEZ 2 days
· Homi 3 days
· The ACE 4 days
· xhc 1 week
· dRgiGGLeZ 1 week
· El Dookie 1 week
· Melber 2 weeks
· SGT PEPPER 2 weeks
· martyr 2 weeks
· Terminator 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.24 seconds - 52 Queries 5,472,237 unique visits