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

Members Online

»
0 Active | 69 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 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
Author Topic: MattY's Weekly COD2 Script Dump!
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Monday, Oct. 8, 2012 03:44 pm
Great job Izno! You should really explain it, at least the basic principle. Looking forward to it!
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Oct. 8, 2012 04:26 pm
Yh, would like to see how you synchronised your AC-130 shoteffects and their collision ;)
Share |
tHMatt
General Member
Since: Sep 11, 2007
Posts: 473
Last: Mar 20, 2013
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Tuesday, Oct. 9, 2012 08:46 am
Are you talking about my AC130 Serthy?

if so - I just use some simple math..

time = speed/distance

The FX Speed you can get through either trial and error or by opening it in the Effect Editor. The distance you work out through a bullet trace, then you know the time, so just

wait time;

then apply the dmg on the spot it hits :P
Share |
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Tuesday, Oct. 9, 2012 05:39 pm
the FX is really simple just not alot of people know about the trick. open the _fx.gsc file and ull see OneShotfxthread( fxId, fxPos, waittime, fxPos2 ) pretty straight forward if you read the arguments presented. give the name of the fx, fxs starting position, wait time, ending position. and you can use a default FX like the single_tracer effect is what i found that worked best. there are also other default FXs and you can even make your own if you really want to.

and the for the collision you just use a bulletrace to check where to put damage and check the surface type so you can make your collision realistic.

edited on Oct. 9, 2012 10:39 am by liltc64
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Tuesday, Oct. 9, 2012 07:28 pm
yh the thing was to synchronise the "tracer" and the explosion - said: the traveltime of the tracer
i only know the UN-made this with a shitload of bullettraces + the speed out of the EffectsED (around 13000 irrc), so maybe i just want to know how Matty's solution was ;) but im still looking forward of your scripts, like to see other workarounds for the same problem and ill catch as many Mods as possible to learn from (from all cod versions the standart scripts, all awe/extreme/demon mods, also dumps from others like iznogod, yours, liltc64 h'n's mod.... etc)

all your scripts will help to develop a modder nwebie just by looking tru it, Thanks for that all you guys!
Share |
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Friday, Oct. 12, 2012 03:19 pm
if i dont see a script today matty im going to have no other option but to murder you [tongue] [thumbs_up]
Share |
tHMatt
General Member
Since: Sep 11, 2007
Posts: 473
Last: Mar 20, 2013
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Friday, Oct. 12, 2012 04:32 pm
'come at me bro'

Just waiting for some more free time so I can finish it.. :( work is being hard on me lately.
Share |
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Oct. 22, 2012 04:58 pm
-- DELETED POST PER FORUM RULES --
Share |
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Oct. 22, 2012 05:02 pm
^point proved thank you for your time im done here
Share |
tHMatt
General Member
Since: Sep 11, 2007
Posts: 473
Last: Mar 20, 2013
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Monday, Oct. 22, 2012 05:11 pm
Why did his post get deleted? I'm looking at the content in my emails and it doesn't look malicious at all..

I dont know if you mods understand code, but sentry guns are basically aim-bots behind the scenes. they use code that aims at players which could technically be edited to act upon the player himself..

You guys are going very overboard here with moderating.
Share |
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»