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 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: anti block
splash93
General Member
Since: Aug 22, 2011
Posts: 25
Last: Dec 20, 2012
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Wednesday, Apr. 25, 2012 12:23 pm
Hi all,

possible a script that through the players ?

anti block

pls thx
Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD4 Scripting
Posted: Wednesday, Apr. 25, 2012 01:10 pm
splash93 writes...
Quote:
Hi all,

possible a script that through the players ?

anti block

pls thx


Do you mean to stop door blockers? Well, not as far as I know. I don't think you can make a player model "unsolid" in COD4. You can in COD1, but I don't believe it's possible in COD4.

The only other thing I can think of that might work is to teleport the player out of the way. Or just kill him. Both are possible, but who would do it? An admin? Or does each player have the ability to do it? I can see that getting abused.
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Wednesday, Apr. 25, 2012 04:59 pm
for doorblockers you could use sth like this:

oldangles = door.angles;
door rotateTo( angle , time );

wait( time );

if( door.angles != oldangles + angle )
{
foreach( player in getentarray( "player" , "classname" )
if( player isTouching( door ) )
player suicide();
door rotateTo( angle , 0.05 );
}
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD4 Scripting
Posted: Wednesday, Apr. 25, 2012 06:51 pm
This script on this thread does what you are looking for!


http://modsonline.com/Forums-top-60197.html

Thanks, Ukdjaj[thumbs_up]
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Wednesday, Apr. 25, 2012 07:36 pm
this script requires a special set trigger on the map, sp you need to edit the map in radiant, so its not possible (without this trigger/this script) to handle blockers^^
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Thursday, Apr. 26, 2012 11:31 am
trigger_radius can be spawned at runtime to test for players in certain locations. But it's also possible to entirely script it (via player origin)

for custom maps, kill / damage triggers can be used, they can also be linked to moveable objects (enablelinkto, linkto)
Share |
splash93
General Member
Since: Aug 22, 2011
Posts: 25
Last: Dec 20, 2012
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Friday, Apr. 27, 2012 12:35 am
thx all :)
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

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

»