MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber *
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
winkledony [Tutor]
maxmaximus [Tutor]
pandemonium [Tutor]
voidsource [Forum]
.KiLL3R. [Membe]
Nemo06c [Forum]
Strelnieks [Today]
sPAKa [Forum]
Strid3r [Today]

9 Members and 15 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Wednesday, Aug. 27th
Details revealed
Sunday, Aug. 24th
Mappers Guild AKA Help Desk
Sunday, Aug. 24th
MODSonair 142 LIVE
Friday, Aug. 22nd
MODSonair Episode 141
Thursday, Aug. 21st
New Gameplay Footage
Latest Poll
Want a MODSonline Wiki for various games?
I think a Wiki would be a great addition to MODSonline. 77.89%
I could see a benefit of a Wiki. 3.68%
I think it would take away from the community. 5.26%
Wiki sites are never good. 3.16%
Wiki... isn't that Buck Roger's robot slave? 10%
Read More...
13 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
script help?
CoD2 Scripting.. Posts: (22) Views: (64) by .KiLL3R.
help
CoD 2 Level Desi.. Posts: (3) Views: (29) by xxxsniper
Details revealed
CoD:WW General G.. Posts: (6) Views: (84) by .KiLL3R.
Updated _teams.gsc
CoD 4 Scripting.. Posts: (6) Views: (76) by 82ndAB-Talon
Google 468 Banner Quake 4 Mods for Dummies
Typhoon Servers
Forums
MODSonline.com 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, rEdrUmMDK, Foxhound, Wyatt_Earp, Rasta, StrYdeR, The_Caretaker, Cypher2004, batistablr
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: flies around dead animals
{UST}Hogan
General Member
Since: Aug 21, 2005
Posts: 67
Last: Aug 13, 2008
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Saturday, Jan. 13, 2007 05:19 am
is there a script for flies around dead animals and bodies?
The_Preacher
General Member
Since: May 23, 2006
Posts: 596
Last: Jan 13, 2008
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Saturday, Jan. 13, 2007 05:47 am
I have added flies to a pond in my map, this is how I did it.

1. Load your map in the Editor.

2. Change the view to the XY Top view using Ctl and Tab together.

3. Postition your mouse were you want the flies to appear on your map in the 2D window, the one on the left.

4. If you look at the bottom of the Editor you will see there is X,Y, and Z coordinates of where your mouse is, write down the X and Y numbers.

5. Change the view in the Editor to the XZ Front view using Ctl and Tab together.

6. Postition your mouse were you want the flies to appear on your map in the 2D window and write down the number.

7. Save your map and exit the Editor.

8. Using Notepad, enter this code.

The numbers in the code are the X, Y and Z locations.

-1344.0 is the X
2352.0 is the Y
80.0 is the Z

Change these numbers to the one's you wrote down earlier.


Code:


9. Save you file as:
mp_yourmapname_fx.gsc
Replace yourmapname with the name of your map, and make sure you don't save it as a txt file, it has to be a gsc file.

10. Put the file in the same folder as your main gsc file, main/maps/mp folder.

10. Add this line to your main gsc file that loads your map, replacing yourmapname with the name of your map.


Code:


Example:


Code:


To add flies in different locations on your map you can simply add them under: (remembering to change the X, Y and Z for the new posistions of your flies)


Code:


Example:

Code:


This is my mp_summerh_fx.gsc file to use as an example:


Code:


{UST}Hogan
General Member
Since: Aug 21, 2005
Posts: 67
Last: Aug 13, 2008
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Saturday, Jan. 13, 2007 05:53 am
thank you
privategrob
General Member
Since: May 19, 2004
Posts: 53
Last: Feb 26, 2008
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Thursday, Jan. 18, 2007 02:57 am
The easier way for me to become the coordinates in the editor is:

Make a info_null at the position of the flies (or any other position you want to know), save the map, select the info_null again an then press N. Now you can see the coordinates. After this, you can delete the info_null.

Regards
Private Grob
(Micka)

edited on Jan. 18, 2007 03:00 am by privategrob
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting
All logos and trademarks and information in this site are property of MODSonline LLC © 2008.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
Art of War Central
Partners
The Firing Box
XoXide
Call of Duty Headquarters
Frag Universe
Battle for Europe COD2
modbase.be
Ask About
Advertising
Friends
After Life Gaming
Canada Kicks Ass Clan
CoD 4 Base
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
MODSonair Releases
MODSonair Episode 141
MODSonair Episode 140
MODSonair Episode 139
MODSonair Episode 138
MODSonair Episode 137
Next Show
The next MODSonair show will air LIVE on:
08/31/2008 11:00 EDT

Time remaining:
Copyright © 2008 MODSonline
Tresware Content Management System Copyright © 2008 Tresware
Website Designed and Hosted   Tresware