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
foyleman [Searc]
DarkCyder [Today]
Sgt.Rampage [Forum]
GomerPyle [Forum]
Zestycookie [Today]
starkk [Today]

6 Members and 17 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 30.12%
Multiplayer 61.45%
WHAT!? The tools are out? 8.43%
Read More...
10 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
Zombie Map Issues with Launcher also.
CoD:WW Level Des.. Posts: (9) Views: (138) by Spuddy
Hud
CoD General Gami.. Posts: (1) Views: (9) by Harbinger
recoil...
CoD General Gami.. Posts: (2) Views: (38) by Harbinger
personalized server sounds, can it be done?
CoD General Gami.. Posts: (2) Views: (70) by Harbinger
Google 468 Banner Half-Life 2 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 Single Player
Call of Duty 4 single player mapping, scripting and everything single player.
Moderators: foyleman, rEdrUmMDK, Foxhound, Rasta, StrYdeR, The_Caretaker, batistablr, playername, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access
Page
Previous Page Next Page
subscribe
Author Topic: stealth walk
The_Caretaker
Preferred Member
Since: Jun 8, 2004
Posts: 11559
Last: Oct 4, 2008
[view latest posts]
Level 10
Forum Moderator
Category: CoD 4 Single Player
Posted: Saturday, Jul. 26, 2008 04:54 pm
In that case I'm out of ideas.
krid
General Member
Since: Jun 21, 2008
Posts: 22
Last: Jul 28, 2008
[view latest posts]
Level 1
Category: CoD 4 Single Player
Posted: Saturday, Jul. 26, 2008 05:00 pm
Is there an other way to do stealth walk ?
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1089
Last: Dec 1, 2008
[view latest posts]
Level 8
Category: CoD 4 Single Player
Posted: Saturday, Jul. 26, 2008 06:02 pm
The #include basicly adds all the stuff from the called script to the script where you have the include

Its giving that error becuase there is a main() in _stealth_anims and a main in your map script

Have a look at how the stock map did it

edited on Jul. 26, 2008 06:02 pm by .KiLL3R.
babycop
General Member
Since: Feb 18, 2006
Posts: 472
Last: Nov 23, 2008
[view latest posts]
Level 5
Category: CoD 4 Single Player
Posted: Saturday, Jul. 26, 2008 06:10 pm
you do not need
#include maps\_stealth_anims;
#include maps\_stealth_logic;


to enable the stealth walk. Like posted before, all you have to do is call this function on the actor: level.actor enable_cqbwalk();
krid
General Member
Since: Jun 21, 2008
Posts: 22
Last: Jul 28, 2008
[view latest posts]
Level 1
Category: CoD 4 Single Player
Posted: Sunday, Jul. 27, 2008 05:05 am
Got it working now[thumbs_up]
I deleted the '#include' lines but i still didn't work but after I added ''level.actor disable_cqbwalk();'', It worked. Thanks for your help.
And one question, when I look at some .gsc files, I see the line ''for (i=0 ; i < ''name?''.size; i++)'' what does it?
The_Caretaker
Preferred Member
Since: Jun 8, 2004
Posts: 11559
Last: Oct 4, 2008
[view latest posts]
Level 10
Forum Moderator
Category: CoD 4 Single Player
Posted: Sunday, Jul. 27, 2008 05:08 am
That's a for loop.. it means it will dowhatever is between the {}'s following it over and over again until the value for i is equal to name.size.. with name probably being an array of entities.
krid
General Member
Since: Jun 21, 2008
Posts: 22
Last: Jul 28, 2008
[view latest posts]
Level 1
Category: CoD 4 Single Player
Posted: Sunday, Jul. 27, 2008 05:22 am
Could you give me an example because I don't get it[crazy]
The_Caretaker
Preferred Member
Since: Jun 8, 2004
Posts: 11559
Last: Oct 4, 2008
[view latest posts]
Level 10
Forum Moderator
Category: CoD 4 Single Player
Posted: Sunday, Jul. 27, 2008 05:25 am
Go over the scripting tutorials.. lots of examples in there.
babycop
General Member
Since: Feb 18, 2006
Posts: 472
Last: Nov 23, 2008
[view latest posts]
Level 5
Category: CoD 4 Single Player
Posted: Sunday, Jul. 27, 2008 10:37 am
I'll resume it shortly. In my Homefront: Cells map, I wanted all allies with a script_noteworthy of alpha to walk in a close quarters battle way. So I did this:


Code:


It basically means that ''i'' is the number of allies with that same script_noteworthy and it will apply the cqbwalk command on all of them.
krid
General Member
Since: Jun 21, 2008
Posts: 22
Last: Jul 28, 2008
[view latest posts]
Level 1
Category: CoD 4 Single Player
Posted: Sunday, Jul. 27, 2008 10:43 am
Ok , thanks and what does the ''script_noteworthy '' means?
Restricted Access Restricted Access
Page
Previous Page Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD 4 Single Player
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.
Intergi
Partners
XoXide
CODAddicts - Call of Duty News & Downloads
The Firing Box
modbase.be
Call of Duty Headquarters
Battle for Europe COD2
Frag Universe
Ask About
Advertising
Friends
MODS Reloaded
Great Gamer
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 155
MODSonair Episode 154
MODSonair Episode 153
MODSonair Episode 152
MODSonair Episode 151
Next Show
The next MODSonair show will air LIVE on:

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