March 23 2026 13:23:13
Navigation
· Home
· Articles
· Downloads
· FAQ
· Discussion Forum
· Web Links
· News Categories
· Contact Me
· Photo Gallery
· Search
· Gameservers
Languages
Users Online
· Guests Online: 5

· Members Online: 0

· Total Members: 1,157
· Newest Member: kamilgwz1
Teamspeak 3
Last Seen Users
· Homi07:13:01
· GONZO18:13:30
· Don Turtuma 1 day
· WEZ 2 days
· hackepter 2 days
· Silent Bob 2 days
· JerK 2 days
· Intruder 3 days
· Administrator 3 days
· Floxen 4 days
· The ACE 1 week
· DooD 1 week
· CrNcK 2 weeks
· VictorMyson 2 weeks
· 422PAU 3 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.08 seconds - 51 Queries 7,353,789 unique visits