Add 'testPointLight' command.
This commit is contained in:
parent
decb8ea1fc
commit
ca9e42a49c
2 changed files with 8 additions and 1 deletions
|
@ -21,7 +21,7 @@ if [ -f "$SCRPATH"/bin/fteqcc ]; then
|
||||||
make
|
make
|
||||||
cd "$OLDDIR"
|
cd "$OLDDIR"
|
||||||
|
|
||||||
find "$SCRPATH" -name Makefile | grep 'src\/Makefile' | grep -v engine | while read MFILE_N; do
|
find "$SCRPATH" -name Makefile | grep 'src\/Makefile' | grep -v engine | grep -v worldspawn | while read MFILE_N; do
|
||||||
cd $(dirname $MFILE_N)
|
cd $(dirname $MFILE_N)
|
||||||
make
|
make
|
||||||
cd ..
|
cd ..
|
||||||
|
|
|
@ -25,6 +25,8 @@ CSQC_Init(float apilevel, string enginename, float engineversion)
|
||||||
pSeatLocal = &g_seatslocal[0];
|
pSeatLocal = &g_seatslocal[0];
|
||||||
|
|
||||||
/* developer/debug commands */
|
/* developer/debug commands */
|
||||||
|
registercommand("testLight");
|
||||||
|
registercommand("testPointLight");
|
||||||
registercommand("getpos");
|
registercommand("getpos");
|
||||||
registercommand("dev_sentence");
|
registercommand("dev_sentence");
|
||||||
registercommand("titles_test");
|
registercommand("titles_test");
|
||||||
|
@ -685,6 +687,11 @@ CSQC_ConsoleCommand(string sCMD)
|
||||||
tokenize(sCMD);
|
tokenize(sCMD);
|
||||||
|
|
||||||
switch (argv(0)) {
|
switch (argv(0)) {
|
||||||
|
case "testPointLight":
|
||||||
|
makevectors(getproperty(VF_ANGLES));
|
||||||
|
traceline(getproperty(VF_ORIGIN), getproperty(VF_ORIGIN) + v_forward * 4096, FALSE, pSeat->m_ePlayer);
|
||||||
|
dynamiclight_spawnstatic(trace_endpos + (v_forward * -16), 1024, [1,1,1]);
|
||||||
|
break;
|
||||||
case "dev_explode":
|
case "dev_explode":
|
||||||
makevectors(getproperty(VF_ANGLES));
|
makevectors(getproperty(VF_ANGLES));
|
||||||
traceline(getproperty(VF_ORIGIN), getproperty(VF_ORIGIN) + v_forward * 4096, FALSE, pSeat->m_ePlayer);
|
traceline(getproperty(VF_ORIGIN), getproperty(VF_ORIGIN) + v_forward * 4096, FALSE, pSeat->m_ePlayer);
|
||||||
|
|
Loading…
Reference in a new issue