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

Members Online

»
0 Active | 43 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 2
Category: CoD2 SP Mapping
Call of Duty 2 single player mapping, scripting and everything single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: Working Mortar Team but issues
xXDzepniXx
General Member
Since: Jul 27, 2012
Posts: 28
Last: Jun 26, 2015
[view latest posts]
Level 2
Category: CoD2 SP Mapping
Posted: Tuesday, Mar. 19, 2013 09:50 pm
I have a working mortar AI that places it and puts in the mortar and fires it although it doesn't damage or sound like a mortar being shot.
Share |
Ni3ls
General Member
Since: Nov 7, 2008
Posts: 256
Last: Sep 9, 2017
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Wednesday, Mar. 20, 2013 04:30 pm
Post your script
Share |
xXDzepniXx
General Member
Since: Jul 27, 2012
Posts: 28
Last: Jun 26, 2015
[view latest posts]
Level 2
Category: CoD2 SP Mapping
Posted: Wednesday, Mar. 20, 2013 09:56 pm
Ni3ls writes...
Quote:
Post your script

#include maps\_utility;
main()
{
maps\_load::main();
maps\_mortarteam::main();
level.mortar = loadfx("fx/explosions/grenadeExp_wood.efx");


level.player takeallweapons();
level.player giveWeapon ("m1garand");
level.player giveWeapon ("colt");
level.player giveWeapon ("fraggrenade");
level.player switchToWeapon ("m1garand");
}
Share |
Ni3ls
General Member
Since: Nov 7, 2008
Posts: 256
Last: Sep 9, 2017
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Wednesday, Mar. 20, 2013 09:58 pm
This is a mortar script? Where are the origins its firing to? Find the origins and do Playerdamage function on that origin
Share |
xXDzepniXx
General Member
Since: Jul 27, 2012
Posts: 28
Last: Jun 26, 2015
[view latest posts]
Level 2
Category: CoD2 SP Mapping
Posted: Wednesday, Mar. 20, 2013 11:42 pm
Ni3ls writes...
Quote:
This is a mortar script? Where are the origins its firing to? Find the origins and do Playerdamage function on that origin
Script for this stuff? The Origins are on the ground. How do I set playerdamage and aidamage?

edited on Mar. 20, 2013 04:50 pm by xXDzepniXx
Share |
Ni3ls
General Member
Since: Nov 7, 2008
Posts: 256
Last: Sep 9, 2017
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Thursday, Mar. 21, 2013 06:59 am
Code:
self radiusDamage(self.origin,500,200,20,self,"MOD_PROJECTILE_SPLASH","rpg_mp" );


Code:
[entity] RadiusDamage( <origin>, <range>, <max damage>, <min damage>, [attacker], [sMeansOfDeath], [sWeapon] )


This is just an example. Modify it to your situation
Share |
xXDzepniXx
General Member
Since: Jul 27, 2012
Posts: 28
Last: Jun 26, 2015
[view latest posts]
Level 2
Category: CoD2 SP Mapping
Posted: Thursday, Mar. 21, 2013 03:07 pm
Ni3ls writes...
Quote:
Code:
self radiusDamage(self.origin,500,200,20,self,"MOD_PROJECTILE_SPLASH","rpg_mp" );


Code:
[entity] RadiusDamage( <origin>, <range>, <max damage>, <min damage>, [attacker], [sMeansOfDeath], [sWeapon] )


This is just an example. Modify it to your situation
How do you insert this and can you modify it to a working real mortar? Cause I'm not completely sure how to put this with my old script and modify all of it cause some just seem like don't modify but I could be wrong you know?
Share |
Ni3ls
General Member
Since: Nov 7, 2008
Posts: 256
Last: Sep 9, 2017
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Thursday, Mar. 21, 2013 03:24 pm
CAn u make a video how its shooting the mortars? Because mortars can be only fired with a script. And you didnt post anything about how the mortars are shooting
Share |
xXDzepniXx
General Member
Since: Jul 27, 2012
Posts: 28
Last: Jun 26, 2015
[view latest posts]
Level 2
Category: CoD2 SP Mapping
Posted: Thursday, Mar. 21, 2013 07:35 pm
Ni3ls writes...
Quote:
CAn u make a video how its shooting the mortars? Because mortars can be only fired with a script. And you didnt post anything about how the mortars are shooting
http://www.youtube.com/watch?v=StZhKrV1k-E
Share |
3st0nian
General Member
Since: Jan 14, 2008
Posts: 291
Last: Dec 4, 2017
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 SP Mapping
Posted: Thursday, Mar. 21, 2013 09:04 pm
attachment: application(3.7Kb)
Added radiusdamage to _mortarteam2.gsc. Place it to your maps folder. Renamed it so it wont mess up stock maps. In your level script you must call
Code:
maps\_mortarteam2::main();

You can change the damage parameters yourself. Just search for radiusdamage.

Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 SP Mapping

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

»