Spotlight maker script

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Spotlight maker script

Post by bdbodger »

This is a menu and script for putting spotlights into your map . This is the menu

Image

this is the readme
To use this script execute it in your level.script

main:

level waittill spawn

exec global/bodger_spot_maker.scr

end

You should bind the menu to a key like this

bind k pushmenu spot_maker

Useing it is simple open the menu change the set number if needed and use the Create Spotlight button

use the + or - keys in the move area to move it . You can set the axis to move x , y or z and the number of units

to create the path for the current set click the start button . To stop createing the path click the stop button .

To delete the path click the delete button

note : you can add to the path or move the spotlight at any time by setting the set number and useing the start , stop , + or - buttons

The Test Spotlights will execute the bodger_spots.scr so you can see how it will look .

You can't make more spots or paths when it is test mode and if you use one of the buttons the command will execute after you exit test mode

To create the script click the Write Script button then exit the game and open qconsole.log in the main folder and copy everything

starting after <----------- Spot maker writeout start ---------------> and before <----------- Spot maker writeout end --------------->

The thread name is part of the writeout and is called spotlight_thread: so in your level script you would put

thread spotlight_thread

to run the thread

Thats it have fun - bdbodger(at)bodger-mods.com
and this is what it looks like

Image

The bodger_spot_maker.scr is used with the menu to write the script . The bodger_spots.scr is what actually does the spots and is executed at the end of the thread that you will copy and paste from qconsole.log

*note the spotlight spawns at your origin so to position it close the menu backup then open the menu again . Always use the exit menu button do not use esc

You can get it Here open the zip and extact the .pk3 to your main directory
Image
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post by PKM »

i have no use what so ever for that bd but damn if that doesn't look sweet. very well done.
i'm not f****** angry, i'm from philadelphia .
Image
Post Reply