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

Members Online

»
0 Active | 9 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
Category: CoD Mapping
CoD mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Need help with no prone script
pvt.Thunder
General Member
Since: Dec 16, 2004
Posts: 48
Last: Feb 28, 2008
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Wednesday, Feb. 23, 2005 04:35 pm
Hello. I'm trying to use a no prone script in my map. There is a river in it , and I would like to not allow the players to crouch or prone. Can anyone help me with that? I've seen a post about no prone script , but I'm a total noob in scripting [wink] , so I always get a script compile error .
----
http://tuol.prv.pl
Share |
phantomdentist
General Member
Since: May 7, 2004
Posts: 379
Last: Jun 14, 2010
[view latest posts]
Level 5
Category: CoD Mapping
Posted: Wednesday, Feb. 23, 2005 04:44 pm
this is what I use although it is for sp not mp. These lines go in main

//////////////////////////////////////////////////////////////////////

thread no_prone();
thread no_crouch();

////////////////////////////////////////////////////////////////////////

and these lines go outsode of main

////////////////////////////////////////////////////////////////////////

no_prone()
{
while (1)
{
noprone = getent ("noprone","targetname");
noprone waittill ("trigger");
level.player allowprone (false);
while (level.player istouching (noprone))
wait (0.05);

level.player allowprone (true);
}
}

no_crouch()
{
while (1)
{
nocrouch = getent ("nocrouch","targetname");
nocrouch waittill ("trigger");
level.player allowCrouch (false);
while (level.player istouching (nocrouch))
wait (0.05);

level.player allowCrouch (true);
}
}

////////////////////////////////////////////////////////////

you put the name of your trigger in where i have put TRIGGER in caps

noprone = getent ("TRIGGER","targetname");

do the same for nocrouch

hope this helps you to at least have an idea of what is needed. The triggers need to be trigger_multiples

don't give up
Share |
ShosMeister
General Member
Since: Feb 17, 2004
Posts: 179
Last: Jun 13, 2005
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Wednesday, Feb. 23, 2005 07:15 pm
Someone may have a copy that they can send you or you can search here for the tutorial/test map that was made long ago to handle no_prone. What the dentist posted is correct but the tutorial shows you what you need to put in your map in Radiant to actually make it work.

If this happens to be for UO (I know it's in the CoD thread but ......), it is already incorporated into the engine and there is no need to have a seperate no_prone handler.
Share |
pvt.Thunder
General Member
Since: Dec 16, 2004
Posts: 48
Last: Feb 28, 2008
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Wednesday, Feb. 23, 2005 08:30 pm
And here is my stupid question [casanova] :
How to insert those lines into main in my .gsc ( I mean in which place ) and where to insert the rest ? Could you show a sample .gsc file? It would be great. [smile]
This problem stops me from finishing my map...
----
http://tuol.prv.pl
Share |
StrYdeR
General Member
Since: May 11, 2004
Posts: 11671
Last: Oct 7, 2021
[view latest posts]
Level 10
Admin
Forum Moderator
Im a HOST of MODSonair
Category: CoD Mapping
Posted: Thursday, Feb. 24, 2005 03:10 am
it is contained in the multiplayer map originnaly released for CoD then converted to UO when Roger Abrahamsson joined up with gray matter

you can view the no prone script in the gsc...for some reason i cant find the tutorial that was in the forum here [angryalien]
Share |
pvt.Thunder
General Member
Since: Dec 16, 2004
Posts: 48
Last: Feb 28, 2008
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Sunday, Feb. 27, 2005 03:38 pm
==>>phantomdentist<<==
I would like to ask You a question concerned with Your advice in my 'no prone script' topic. My gsc looks like this:
main()
{
setCullFog (0, 7500, .32, .36, .40, 0);
ambientPlay("ambient_mp_carentan");

thread no_prone();
thread no_crouch();
mapsmp_load::main();
mapsmpmp_depot_fx::main();


game["allies"] = "british";
game["axis"] = "german";

game["british_soldiertype"] = "airborne";
game["british_soldiervariation"] = "normal";
game["german_soldiertype"] = "wehrmacht";
game["german_soldiervariation"] = "normal";

game["attackers"] = "allies";
game["defenders"] = "axis";

game["layoutimage"] = "mp_thunderville_test";
}
no_prone()
{
while (1)
{
noprone = getent ("noprone","targetname");
noprone waittill ("trigger");
level.player allowprone (false);
while (level.player istouching (noprone))
wait (0.05);

level.player allowprone (true);
}
}
I don't know what am I doing wrong but I still get the script compile error. Do You have any ideas? Maybe I've pasted the lines You told in wrong place? [smile]
Share |
StrYdeR
General Member
Since: May 11, 2004
Posts: 11671
Last: Oct 7, 2021
[view latest posts]
Level 10
Admin
Forum Moderator
Im a HOST of MODSonair
Category: CoD Mapping
Posted: Sunday, Feb. 27, 2005 10:21 pm
post the script compile error...if you start your map with developer 1 then you should get a detailed error report in the console [angryalien]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoD 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

»