Data Realms Fan Forums http://45.55.195.193/ |
|
Flashbang http://45.55.195.193/viewtopic.php?f=61&t=14867 |
Page 1 of 2 |
Author: | MaximDude [ Fri May 22, 2009 4:44 pm ] | ||
Post subject: | 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...
|
Author: | Darlos9D [ Fri May 22, 2009 4:52 pm ] |
Post subject: | 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. |
Author: | MaximDude [ Fri May 22, 2009 5:01 pm ] |
Post subject: | 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. |
Author: | Mind [ Fri May 22, 2009 5:51 pm ] |
Post subject: | 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 |
Author: | Areku [ Fri May 22, 2009 6:00 pm ] |
Post subject: | 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. |
Author: | Mind [ Fri May 22, 2009 6:00 pm ] |
Post subject: | 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 |
Author: | MaximDude [ Fri May 22, 2009 7:25 pm ] |
Post subject: | 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 maximdude 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? |
Author: | Mind [ Fri May 22, 2009 7:31 pm ] |
Post subject: | 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=14737 kinda tutorial to get you going and viewtopic.php?f=73&t=14636 variables and when to use em and http://www.datarealms.com/wiki/index.php/Category:Lua more 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 |
Author: | Fredrick [ Fri May 22, 2009 7:44 pm ] |
Post subject: | 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? |
Author: | MaximDude [ Fri May 22, 2009 7:53 pm ] |
Post subject: | 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. |
Author: | Lizardheim [ Fri May 22, 2009 7:59 pm ] |
Post subject: | 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 |
Author: | Roy-G-Biv [ Fri May 22, 2009 8:43 pm ] |
Post subject: | 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. |
Author: | alaifain [ Fri May 22, 2009 9:53 pm ] |
Post subject: | 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? |
Author: | Foa [ Sat May 23, 2009 1:42 am ] |
Post subject: | 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. |
Author: | Point.blank [ Sat May 23, 2009 1:29 pm ] |
Post subject: | 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)? |
Page 1 of 2 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |