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
CoDWW 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
supersword [Forum]
JerryAtricks [Forum]
foyleman [Messa]
Sgt.Rampage [Forum]
4sakin [Tutor]
bigRope [Tutor]
starkk [Today]
Boltriflem... [Forum]
*UWS*KILL_... [Forum]

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

download TeamSpeak

In-The-News
Monday, Dec. 1st
A message from foyleman
Sunday, Nov. 30th
MODSonair 156 Live
Friday, Nov. 28th
MODSonair Episode 155
Wednesday, Nov. 26th
MODSonair Forum Buttons
Monday, Nov. 24th
Holiday Gift Guide 2008 - PC
Latest Poll
Single or Multiplayer maps for World at War?
Single-Player 29.21%
Multiplayer 62.92%
WHAT!? The tools are out? 7.87%
Read More...
10 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
Mirror's Edge PC Release Date Announced
News Around the .. Posts: (2) Views: (2) by supersword
EFFECTS ERROR
CoD 4 Level Desi.. Posts: (4) Views: (56) by JerryAtricks
missing loadscreen
CoD:WW Level Des.. Posts: (2) Views: (16) by *UWS*KILL_ME_NOW
[Prefab] Sliding doors
CoD:WW Level Des.. Posts: (2) Views: (43) by Watter
Art of War Central Quake 4 Mods for Dummies
CoDWW Download
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 4
Category: CoD 4 Level Design
CoD 4 mapping and level design.
Moderators: foyleman, rEdrUmMDK, Foxhound, Rasta, StrYdeR, The_Caretaker, batistablr, playername, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access
Page
Previous Page
subscribe
Author Topic: ? How to just do Smoke?
NovemberDobby
General Member
Since: Sep 17, 2006
Posts: 1673
Last: Nov 30, 2008
[view latest posts]
Level 8
Category: CoD 4 Level Design
Posted: Wednesday, Feb. 20, 2008 12:03 pm
Why would any normal text editor do that.
Sevenz
General Member
Since: Apr 24, 2006
Posts: 1134
Last: Dec 3, 2008
[view latest posts]
Level 8
Category: CoD 4 Level Design
Posted: Wednesday, Feb. 20, 2008 04:31 pm
Notepad does not.
Tunernetwork
General Member
Since: Feb 4, 2008
Posts: 79
Last: Mar 26, 2008
[view latest posts]
Level 3
Category: CoD 4 Level Design
Posted: Wednesday, Feb. 20, 2008 07:10 pm
any other suggestions? lol [2guns]
coolkiller384
General Member
Since: May 4, 2007
Posts: 53
Last: Feb 29, 2008
[view latest posts]
Level 3
Category: CoD 4 Level Design
Posted: Thursday, Feb. 21, 2008 09:35 am
i tried to use the script from the 3rd page the 1st post from sevenz

i've got a mp_snow.gsc:


Code:
main()
{
	maps\mp\_load::main();
	ambientPlay("ambient_middleeast_ext");
	maps\mp\mp_snow_fx::main();
}


my mp_snow_fx.gsc:


Code:
main()
{
	level._effect["smoke"] = loadfx("smoke/thin_light_smoke_S");

	playfx("smoke", (378, 899, -73)); // your coord here!
}


my csv:


Code:
ignore,code_post_gfx_mp
ignore,common_mp
ignore,localized_code_post_gfx_mp
ignore,localized_common_mp
col_map_mp,maps/mp/mp_snow.d3dbsp
rawfile,maps/mp/mp_snow.gsc
impactfx,mp_snow
sound,common,mp_snow,!all_mp
sound,generic,mp_snow,!all_mp
sound,voiceovers,mp_snow,!all_mp
sound,multiplayer,mp_snow,!all_mp
xmodel,body_mp_usmc_specops
xmodel,head_mp_usmc_tactical_mich_stripes_nomex
xmodel,body_mp_usmc_sniper
xmodel,head_mp_usmc_tactical_baseball_cap
xmodel,body_mp_usmc_recon
xmodel,head_mp_usmc_nomex
xmodel,body_mp_usmc_assault
xmodel,head_mp_usmc_tactical_mich
xmodel,body_mp_usmc_support
xmodel,head_mp_usmc_shaved_head
xmodel,body_mp_arab_regular_cqb
xmodel,head_mp_arab_regular_headwrap
xmodel,viewhands_desert_opfor
xmodel,body_mp_arab_regular_sniper
xmodel,head_mp_arab_regular_sadiq
xmodel,body_mp_arab_regular_engineer
xmodel,head_mp_arab_regular_ski_mask
xmodel,body_mp_arab_regular_assault
xmodel,head_mp_arab_regular_suren
xmodel,body_mp_arab_regular_support
xmodel,head_mp_arab_regular_asad
fx,smoke/thin_light_smoke_S
rawfile,maps/mp/mp_snow_fx.gsc


aaand the error i'm getting (after compiling everything like bsp, reflections and so on...):


Code:
script runtime error
(see console for details)
type string is not an int


could someone help me o.0
jreece2475
General Member
Since: Aug 3, 2004
Posts: 51
Last: Jun 10, 2008
[view latest posts]
Level 3
Category: CoD 4 Level Design
Posted: Thursday, Feb. 21, 2008 10:54 am
Here is the script I used on my map to change the direction the smoke drifted:

Code:
maps\mp\_fx::loopfx("effect", (-690, 165, 50), 1,(-680,165,50));


Obviously change your cords. to match what you are doing and play around with them to get the desired drift you need.
Sevenz
General Member
Since: Apr 24, 2006
Posts: 1134
Last: Dec 3, 2008
[view latest posts]
Level 8
Category: CoD 4 Level Design
Posted: Thursday, Feb. 21, 2008 01:02 pm

Quote:
type string is not an int

an integer was expected, but string given. i don't think this has to do with the efx script.
Tunernetwork
General Member
Since: Feb 4, 2008
Posts: 79
Last: Mar 26, 2008
[view latest posts]
Level 3
Category: CoD 4 Level Design
Posted: Thursday, Feb. 21, 2008 01:49 pm
I may try picking apart the chimney prefab again to get that working
coolkiller384
General Member
Since: May 4, 2007
Posts: 53
Last: Feb 29, 2008
[view latest posts]
Level 3
Category: CoD 4 Level Design
Posted: Thursday, Feb. 21, 2008 02:11 pm
but when i'm doing the // in front of the script and deleting the csv line it starts the map!

EDIT:

i read the console and there were errors with the fx thing, going to look, what it was

edited on Feb. 21, 2008 02:13 pm by coolkiller384
Sevenz
General Member
Since: Apr 24, 2006
Posts: 1134
Last: Dec 3, 2008
[view latest posts]
Level 8
Category: CoD 4 Level Design
Posted: Saturday, Feb. 23, 2008 01:00 am
i guess "smoke" (playfx) doesn't refer to level._effect[]. this might work:

Code:
main()
{
	level._effect["smoke"] = loadfx("smoke/thin_light_smoke_S");

	playfx(level._effect["smoke"], (378, 899, -73));
}


if "type string is not an int"-error appears using loopfx, i can't help you. Worked for me without problems.
Restricted Access Restricted Access
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD 4 Level Design
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
The Firing Box
Battle for Europe COD2
XoXide
modbase.be
Frag Universe
Call of Duty Headquarters
CODAddicts - Call of Duty News & Downloads
Ask About
Advertising
Friends
The Clan Database
CoD 4 Base
MODS Reloaded
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 155
MODSonair Episode 154
MODSonair Episode 153
MODSonair Episode 152
MODSonair Episode 151
Next Show
The next MODSonair show will air LIVE on:
12/07/2008 12:00 EST

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