April 26 2024 07:30:02
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,129
· Newest Member: areen
Teamspeak 3
Last Seen Users
· Intruder02:52:49
· areen 1 day
· The ACE 1 day
· GONZO 2 days
· Bonnfreddy 2 days
· hackepter 2 days
· Sully 4 days
· WEZ 4 days
· Homi 1 week
· Terminator 1 week
· Silent Bob 1 week
· Highl@nder 3 weeks
· Jardacz 3 weeks
· desintegrator 3 weeks
· gus 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.30 seconds - 52 Queries 4,919,881 unique visits