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
ayyappa [Downl]
Maciusiak [Downl]
sebastian171 [Downl]

3 Members and 18 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Sunday, Oct. 12th
MODSonair 149 Live
Friday, Oct. 10th
Far Cry 2 Money, Diamonds, and Blood Trailer
Friday, Oct. 10th
MODSonair Episode 148
Thursday, Oct. 9th
Multiplayer Game Modes Interview
Sunday, Oct. 5th
Help MODSonline Heal Kids and Fight Cancer!
Latest Poll
Would you pay for mod tools?
I would pay a one time fee for mod tools for my favorite title 13%
I would pay a monthly/yearly subsrciption fee for mod tools for my favorite title 0%
I already paid for the game - Tools should come bundled because I am just fixing what the developers broke 59%
100% definitely NOT! 22%
I haven't seen a game yet that wasn't 100% perfect when the developers released it 4%
Games are the devil! 2%
Read More...
10 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
making a new teture!!
CoD 4 Level Desi.. Posts: (2) Views: (13) by WHISKYMAN
xmodel works, but tells me image file is missi...
CoD 4 Level Desi.. Posts: (11) Views: (51) by mjrtoo
Radar Pic. HOW TO MAKE IT....?
CoD 4 Level Desi.. Posts: (2) Views: (15) by fireball1
writing a word in radian without wall XD!!
CoD 4 Level Desi.. Posts: (1) Views: (12) by killerciao
Extra Life - Save Kids Quake 4 Mods for Dummies
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, Welshy
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: 75
Last: Oct 9, 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: 75
Last: Oct 9, 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.
MODSonline Subscriptions
Partners
Frag Universe
Call of Duty Headquarters
CODAddicts - Call of Duty News & Downloads
modbase.be
Battle for Europe COD2
The Firing Box
XoXide
Ask About
Advertising
Friends
Volcano
The Clan Database
Canada Kicks Ass Clan
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 148
MODSonair Episode 147
MODSonair Episode 146
MODSonair Episode 145
MODSonair Episode 144
Next Show
The next MODSonair show will air LIVE on:
10/19/2008 11:00 EDT

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