Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 85 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: damage question script_exploder
elyas
General Member
Since: Jul 3, 2008
Posts: 63
Last: Jun 7, 2010
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Sunday, May. 30, 2010 09:16 am
hi guys

i'm making a map where i have destructible walls and doors.
im using script_exploder tutorial from http://www.youtube.com/watch?v=2Xf4KTxdGQA&feature=related..

my question is" can i setup a damage radius when the doors or walls blow up, for now nothing happens,
example: i placed a c4 charge on a door, then i position myself behind the door on the other side, then i detonate the c4. but when i do; i dont die.
i would like the script to kill any1 within the desired radius when the door explodes.
ive een looking and testing around with the explosiv_barrels script
but i can only get it to work if i shoot at the brushmodels that appear after the explosion.

is there a script that can help me with this???


edited on May. 30, 2010 05:16 am by elyas
Share |
Tristan4592
General Member
Since: Apr 26, 2007
Posts: 235
Last: Nov 11, 2010
[view latest posts]
Level 4
MODSCON
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Sunday, May. 30, 2010 05:40 pm
Try this function:

RadiusDamage( origin, range, max damage, min damage, [attacker] )

Should work for what you're describing [biggrin]

edited on May. 30, 2010 01:40 pm by Tristan4592
Share |
elyas
General Member
Since: Jul 3, 2008
Posts: 63
Last: Jun 7, 2010
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Sunday, May. 30, 2010 06:07 pm
how do i use it?

should i paste into gsc??
my scripting is very bad :P
Share |
Mystic
General Member
Since: Apr 10, 2004
Posts: 6147
Last: Apr 15, 2018
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Sunday, May. 30, 2010 09:57 pm
Yes radius damage is a script function which is normally used with explosion to simulate it actually hurting the player.

Use the function as you would any other in your .gsc, so something like

Code:
radiusdamage (origin, 500, 2000, 1000);


The origin can be a entity or coordinate, depends on what you are trying to do

To test to see if this works i would add a simple print in after you radius damage, you don't have to do this but it may help to see if you have right.

Code:
iprintln ("TEST: radius damage working");


Share |
elyas
General Member
Since: Jul 3, 2008
Posts: 63
Last: Jun 7, 2010
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Monday, May. 31, 2010 12:20 am
i got it to work.after allot of cuttin and pasting
my models explode with all explosivs and players behind or near wall die.
i used 2 triggers one regular and 1 calling for script made by kmabigtime.
now all works like i wanted it to
thanks guys
Share |
dundy
General Member
Since: Dec 14, 2004
Posts: 768
Last: Nov 1, 2020
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Monday, May. 31, 2010 08:08 pm
Does this work with WaW too.....if so

how do i add this to my exploder ...I,am such a noob with this

scripting stuff[sad]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»