Author |
Message |
MaximDude
Joined: Wed Nov 22, 2006 3:19 pm Posts: 2073
|
Flashbang
Ok, so... I decided to make a completely useless flashbang :D I made the first flashbang back in build 15 when glows were inteduced into CC, but I never released it (At least here). Its useless because I don't know how to use lua, but I do know its possible to make it actually work against AI using it, sadly I can't do it, so if anyone who can is willing to - feel free to do so. :D Here's a gif. (Its kinda big) So yeah... This is just me getting the hang of modding back...
|
Fri May 22, 2009 4:44 pm |
|
|
Darlos9D
Joined: Mon Jul 16, 2007 9:50 am Posts: 1512 Location: Tallahassee, FL
|
Re: Flashbang
Have the grenade release a pinned, limited lifetime particle that runs a script (whatever is making that huge glow would work). In the script's Update code, just have it find every actor within a certain range, get each actors controller, and use their controllers to set all of their AIM_SHARP and WEAPON_FIRE states to false. The particle will keep doing this to the actors until it disappears. It may not affect player-controlled actors though, which could be a good or a bad thing.
|
Fri May 22, 2009 4:52 pm |
|
|
MaximDude
Joined: Wed Nov 22, 2006 3:19 pm Posts: 2073
|
Re: Flashbang
Darlos9D wrote: Have the grenade release a pinned, limited lifetime particle that runs a script (whatever is making that huge glow would work). In the script's Update code, just have it find every actor within a certain range, get each actors controller, and use their controllers to set all of their AIM_SHARP and WEAPON_FIRE states to false. The particle will keep doing this to the actors until it disappears. It may not affect player-controlled actors though, which could be a good or a bad thing. You're saying it like I know how to do it... If you care to explain how to add a script to a particle and find this "Update code" and do everything else you said, i'll be very grateful.
|
Fri May 22, 2009 5:01 pm |
|
|
Mind
Joined: Thu Mar 06, 2008 10:54 pm Posts: 1360 Location: USA
|
Re: Flashbang
MaximDude wrote: Darlos9D wrote: Have the grenade release a pinned, limited lifetime particle that runs a script (whatever is making that huge glow would work). In the script's Update code, just have it find every actor within a certain range, get each actors controller, and use their controllers to set all of their AIM_SHARP and WEAPON_FIRE states to false. The particle will keep doing this to the actors until it disappears. It may not affect player-controlled actors though, which could be a good or a bad thing. You're saying it like I know how to do it... If you care to explain how to add a script to a particle and find this "Update code" and do everything else you said, i'll be very grateful. What is this suppposed to do exactly? Kill the AI? If so, h did something exactly like this viewtopic.php?f=61&t=14819
|
Fri May 22, 2009 5:51 pm |
|
|
Areku
Joined: Fri Oct 17, 2008 9:46 pm Posts: 5212 Location: The Grills Locker.
|
Re: Flashbang
The Mind wrote: What is this suppposed to do exactly? Kill the AI?
Nah, I think he only wants the grenade to force the AI out of the aiming mode, possibly stunning them for a while.
|
Fri May 22, 2009 6:00 pm |
|
|
Mind
Joined: Thu Mar 06, 2008 10:54 pm Posts: 1360 Location: USA
|
Re: Flashbang
Areku wrote: The Mind wrote: What is this suppposed to do exactly? Kill the AI?
Nah, I think he only wants the grenade to force the AI out of the aiming mode, possibly stunning them for a while. O ok, nice. Thatd be pretty sweet maxindude
|
Fri May 22, 2009 6:00 pm |
|
|
MaximDude
Joined: Wed Nov 22, 2006 3:19 pm Posts: 2073
|
Re: Flashbang
The Mind wrote: Areku wrote: The Mind wrote: What is this suppposed to do exactly? Kill the AI?
Nah, I think he only wants the grenade to force the AI out of the aiming mode, possibly stunning them for a while. O ok, nice. Thatd be pretty sweet maxi mdude Obviously... Its the only thing flashbangs do... I don't think there ever was an enemy killing flashbang... Yeah... Is there a tutorial on CC lua scripting or something?
|
Fri May 22, 2009 7:25 pm |
|
|
Mind
Joined: Thu Mar 06, 2008 10:54 pm Posts: 1360 Location: USA
|
Re: Flashbang
MaximDude wrote: Obviously... Its the only thing flashbangs do... I don't think there ever was an enemy killing flashbang...
Yeah...
Is there a tutorial on CC lua scripting or something?
http://www.datarealms.com/forum/viewtop ... 73&t=14737kinda tutorial to get you going and viewtopic.php?f=73&t=14636variables and when to use em and http://www.datarealms.com/wiki/index.php/Category:Luamore variables and such. Ive found most of my help on the irc, and now ive learned a lot, but this might be good enough for you Also, maybe look at other people's scripts and find out what stuff means, and how to use it. Hope this helps
|
Fri May 22, 2009 7:31 pm |
|
|
Fredrick
Joined: Tue Aug 21, 2007 12:51 am Posts: 128 Location: Raleigh, North Carolina, USA
|
Re: Flashbang
So glad to see you back, Maxim. Did the pestering on Deviantart work or did you just see b23 was out and decide to come back?
|
Fri May 22, 2009 7:44 pm |
|
|
MaximDude
Joined: Wed Nov 22, 2006 3:19 pm Posts: 2073
|
Re: Flashbang
Fredrick wrote: So glad to see you back, Maxim. Did the pestering on Deviantart work or did you just see b23 was out and decide to come back? I got an email that B23 came out, so I decided to check it out and now i'm here.
|
Fri May 22, 2009 7:53 pm |
|
|
Lizardheim
DRL Developer
Joined: Fri May 15, 2009 10:29 am Posts: 4107 Location: Russia
|
Re: Flashbang
MaximDude wrote: I got an email that B23 came out, so I decided to check it out and now i'm here. I think know that everybody's happy about that
|
Fri May 22, 2009 7:59 pm |
|
|
Roy-G-Biv
Joined: Mon Feb 12, 2007 12:46 am Posts: 1765 Location: ..............
|
Re: Flashbang
When'd you come back?
Also, you could just make it gib the glow and an invisible actor that cannot be hit. Like Darlos's Chaff nade.
|
Fri May 22, 2009 8:43 pm |
|
|
alaifain
Joined: Sat Feb 09, 2008 7:44 pm Posts: 230 Location: Vancouver, BC
|
Re: Flashbang
MaximDude wrote: Fredrick wrote: So glad to see you back, Maxim. Did the pestering on Deviantart work or did you just see b23 was out and decide to come back? I got an email that B23 came out, so I decided to check it out and now i'm here. What do you think?
|
Fri May 22, 2009 9:53 pm |
|
|
Foa
Data Realms Elite
Joined: Wed Sep 05, 2007 4:14 am Posts: 3966 Location: Canadida
|
Re: Flashbang
Ah, this was like B18, when that guy made the smoke bomb, thanks for bringing it back! If it does the chaff grenade thing, it better be like the old Chaff Grenade, the new one bites balls.
|
Sat May 23, 2009 1:42 am |
|
|
Point.blank
Joined: Sat May 02, 2009 4:52 am Posts: 254
|
Re: Flashbang
In addition to the disable-enemy-firing, would it be possible to have the flashbang only work when you are facing the grenade (if you aren't, you see the flash alot shorter)?
|
Sat May 23, 2009 1:29 pm |
|
|
|
Who is online |
Users browsing this forum: Baidu [Spider] |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|