From 98e8cdb8c950c4162087b9aa1e638245ee6ea43a Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Thu, 18 Sep 2008 07:58:16 +0000 Subject: [PATCH] experimenting with dynamic lights on guns git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2687 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/weapon.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/src/weapon.cpp b/source/src/weapon.cpp index 0c572fc2..521aef1a 100644 --- a/source/src/weapon.cpp +++ b/source/src/weapon.cpp @@ -874,6 +874,7 @@ void gun::attackfx(const vec &from, const vec &to, int millis) addbullethole(owner, from, to); addshotline(owner, from, to); particle_splash(0, 5, 250, to); + adddynlight(from, 4, 100, 0, 128, 104, 96); attacksound(); } @@ -901,6 +902,7 @@ void shotgun::attackfx(const vec &from, const vec &to, int millis) int holes = 3+rnd(5); loopi(holes) addbullethole(owner, from, sg[i], 0, false); } + adddynlight(from, 4, 100, 0, 128, 104, 96); attacksound(); } @@ -923,6 +925,7 @@ void sniperrifle::attackfx(const vec &from, const vec &to, int millis) addshotline(owner, from, to); particle_splash(0, 50, 200, to); particle_trail(1, 500, from, to); + adddynlight(from, 4, 100, 0, 128, 104, 96); attacksound(); }