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

Members Online

»
0 Active | 6 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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: CoD4 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: Triggered FX
Alphawolf
General Member
Since: Jan 28, 2008
Posts: 91
Last: Mar 24, 2008
[view latest posts]
Level 3
Category: CoD4 MP Mapping
Posted: Tuesday, Mar. 11, 2008 10:33 pm
A good day for both of us hark you got you splashing & i got my drowning lol

how does look ?
i mean natural does it still happen if your going slow like walking & crouch
or just when you run and jump, if you could refine it to do that m8 i think every ony with water would want it including me
Share |
Bloodlust
General Member
Since: Apr 7, 2004
Posts: 101
Last: Jan 14, 2015
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Tuesday, Mar. 11, 2008 11:08 pm
how about you post your working script for others to see how it was done?
or did you use the script I posted with or without modifying it?
Share |
Alphawolf
General Member
Since: Jan 28, 2008
Posts: 91
Last: Mar 24, 2008
[view latest posts]
Level 3
Category: CoD4 MP Mapping
Posted: Tuesday, Mar. 11, 2008 11:58 pm
heres the link

http://www.infinityward.com/community/forum/index.php?topic=23382.0

i have a silly little question
i just seen some aswome birds takeoff fx in the editor
and am gonig to use them in my map to suprise players with them flying out of bushes ,& wonderd would this have to be a trigger box & if so would it be a trigger once ,so it dont keep looping while the player stands there.i need it to trigger everytime a player walks near the bush but not loop and not 1 time in the map round only if this makes any sense
simple question is does a trigger once play only one time in the map only or 1 once every time a player enters the area

i have not done any trigger fx yet this would be my first

i aslo would like to get the misc/paraboilc water fx to work but where would i place it?????
Share |
HarkoninVSC
General Member
Since: Jan 25, 2008
Posts: 294
Last: Apr 24, 2008
[view latest posts]
Level 5
Category: CoD4 MP Mapping
Posted: Wednesday, Mar. 12, 2008 01:37 am
Ok where to start?
@blood

No I couldn't use yours, it was a little too simplified but thanks for trying.

The script was done by tracking player movement with the getvelocity and the GetStance command. (total pain in the ass since Velocity returns a vector)

Basically there is an if statement that says If(player is moving and If player is standing) then do this.

@Dobby
Yeah I noticed the hints not showing, lol.

@Alpha
Yeah good day, although that drown script has been there forever I use a modified version for my swimming pool.

Effect looks realistic, you even "drip" briefly stepping out of the water.

And the effect only goes off if you are standing AND moving, I'm incorporating a different effect for when crouched and prone.

As far as your birds are concerned, might not be a good idea for MP since it would give away a players position.

Now for the actual mapping/scripting of the effect you can do it several ways most require some scripting. I'm thinking along the lines of a timer or a count. You would most likely use a Trigger_multiple for it.

On a related side note:
I thought I saw a reset trigger function but I can't seem to find it now. You can also spawn a trigger so you've got plenty of options.


Share |
elim
General Member
Since: Feb 6, 2004
Posts: 527
Last: Jan 12, 2011
[view latest posts]
Level 6
Category: CoD4 MP Mapping
Posted: Friday, Mar. 14, 2008 12:10 pm
HarkoninVSC writes...
Quote:
We got it YAY!

heres a screenshot ->


http://68.197.222.14:3000/vetserver/screens/shot0067.jpg


http://68.197.222.14:3000/vetserver/screens/shot0067.jpg

edited on Mar. 11, 2008 01:05 pm by HarkoninVSC


you know its posts liek this that make me laugh..

you come here for help people go out of their way to help you. then you make stpid posts saying yey i got it....

instead of posts saying... TUTORIAL !!! or here is the script for blahdeblah its bloody amazing how selfish some people really are
Share |
HarkoninVSC
General Member
Since: Jan 25, 2008
Posts: 294
Last: Apr 24, 2008
[view latest posts]
Level 5
Category: CoD4 MP Mapping
Posted: Friday, Mar. 14, 2008 02:57 pm
Lol, funny since I asked for help, didn't get any but still I answered every question as well as listing all the functions used.

A tutorial would be moot since it is a case sensitive effect not really general. And the majority of it is scripting and I'm not really great at explaining C.

edited on Mar. 14, 2008 10:59 am by HarkoninVSC
Share |
elim
General Member
Since: Feb 6, 2004
Posts: 527
Last: Jan 12, 2011
[view latest posts]
Level 6
Category: CoD4 MP Mapping
Posted: Friday, Mar. 14, 2008 03:10 pm
m8 there is 100s of people having problems triggering effects on contract. any help to them would help your writing scripts so a little tut wouldnt go a miss in thanks for all the help that people have provided you with. and if their advice helped or not they made a effort to help m8 this community depends on people learning things then posting them for others. its not about people pinching your stuff or copying its about experienced mappers or people that can do something helpi9ng the oens that cant

edited on Mar. 14, 2008 11:12 am by elim
Share |
HarkoninVSC
General Member
Since: Jan 25, 2008
Posts: 294
Last: Apr 24, 2008
[view latest posts]
Level 5
Category: CoD4 MP Mapping
Posted: Friday, Mar. 14, 2008 03:37 pm
Quote:

Blah blah blah


I have no idea what you just said.

A tut is irrelevant since everything has been done.

Place a trigger_multiple where you want the effect played.
Everyone knows how to use triggers right?

Preload the effect in your script with ->
level._effect["Whatyoucallit"] = loadfx ("Folder/effectname");
Been done if several tuts here and on the wiki alone.

Write your script to define how and when to play the effect.

Functions I used;

GetEntArray and GetEnt ->
http://www.infinityward.com/Script/entity/getent.htm
http://www.infinityward.com/Script/entity/getentarray.htm

GetOrigin -> Where the effect plays.
http://www.infinityward.com/Script/entity/getorigin.htm

Getvelocity -> To see if the player was moving.
http://www.infinityward.com/Script/player/getvelocity.htm

GetStance -> If the player is standing or not.
http://www.infinityward.com/Script/player/getstance.htm

IsTouching -> If player is touching the trigger.
http://www.infinityward.com/Script/entity/istouching.htm

and finally

PlayFX - To play the effect.
http://www.infinityward.com/Script/effects/playfx.htm

Scripting Basics ->
http://www.infinityward.com/wiki/index.php?title=Scripting_Basics

Script Commands->
http://www.infinityward.com/Script/index.htm

I would have to write a tutorial on how to code with C+ and I'm not up for that. Everything there is already documented with relevant tuts here and on the wiki.



edited on Mar. 14, 2008 11:38 am by HarkoninVSC
Share |
novemberdobby
General Member
Since: Sep 17, 2006
Posts: 1965
Last: Oct 13, 2013
[view latest posts]
Level 8
Forum Moderator
Category: CoD4 MP Mapping
Posted: Friday, Mar. 14, 2008 03:56 pm
elim writes...
you know its posts liek this that make me laugh..

you come here for help people go out of their way to help you. then you make stpid posts saying yey i got it....

instead of posts saying... TUTORIAL !!! or here is the script for blahdeblah its bloody amazing how selfish some peiople really are

Whoah, slow down. It's great that he got it working, but he doesn't have to post everything up that happens just because it works. As he says, there are already plenty of tuts that together can cover this, and he's not going to be worried about people 'pinching or copying his stuff' because it's pretty much been explained here.

And how many times did you have to press post?!
Share |
HarkoninVSC
General Member
Since: Jan 25, 2008
Posts: 294
Last: Apr 24, 2008
[view latest posts]
Level 5
Category: CoD4 MP Mapping
Posted: Friday, Mar. 14, 2008 09:04 pm
@ Alpha ->

I got our birds working.

Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP 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

»