January 30 2023 07:11:59
Navigation
· Home
· Articles
· Downloads
· FAQ
· Discussion Forum
· Web Links
· News Categories
· Contact Me
· Photo Gallery
· Search
· Gameservers
Languages
Users Online
· Guests Online: 6

· Members Online: 0

· Total Members: 1,103
· Newest Member: Gremlin
Teamspeak 3
Last Seen Users
· Confused Master08:07:43
· FlashX16:09:37
· Nosek17:07:54
· sonic21:19:34
· forrest747 1 day
· WEZ 1 day
· Intruder 3 days
· logan 4 days
· Jardacz 1 week
· VictorMyson 1 week
· Homi 1 week
· braddock 1 week
· The ACE 1 week
· Karalabe 2 weeks
· sitting_duck 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.07 seconds - 51 Queries 4,256,666 unique visits