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

Members Online

»
0 Active | 50 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: Change Player in Object
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Nov. 8, 2010 07:06 am
exactly u should start with basics before you start somthing on this level of scripting if you could read the scripts you could tell
Code:
bike() //maps\mp\gametypes\_uber::bike();
{
self setclientcvar( "cg_thirdPerson", "1" ); 
self setclientcvar( "cg_thirdPersonRange", "150" ); 
bike = spawn("script_model", self.origin + (0,0,15) );
bike setmodel("xmodel/prop_bike");
bike.angles = (self.angles);
bike linkto(self);
self hide();
self setModel("");
self iprintln("^2Press USE button to unhide yourself");

while (1)
{

wait(0.05);

if(self UseButtonPressed()) 
{
self setclientcvar( "cg_thirdPerson", "0" );
bike delete();
self iprintln("^1Now you're unhidden");
self show();
hidden();
return(0);
}
if(self.health <= 0) 
{
self setclientcvar( "cg_thirdPerson", "0" );
bike delete();
self show();
hidden();
return(0);
}
}
}


that clearly has no command you have to chop and screw with that wich Xylozi helped you do but you failed to understand what he was doing. you should try somthing more simple before you get on this level of scripting
Share |
lineage2soul
General Member
Since: Oct 25, 2010
Posts: 24
Last: Nov 8, 2010
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Monday, Nov. 8, 2010 08:30 am
yes i know i get script from uberpam mod i want to make script whit command like this /rcon bike PLAYER ID i search but its hard to find.
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Wednesday, Nov. 10, 2010 07:42 pm
Nope, its in this friggin thread. You simply
1. Havent found it
2. Dont understand it
3. Have no clue what to look for
4. All of above.

Srry if this sounds kinda harsh, it's kinda meant to sound that way, though, no offense to you personally.
Share |
Dutch77
General Member
Since: Oct 7, 2007
Posts: 48
Last: May 5, 2011
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Sunday, Nov. 21, 2010 03:58 pm
IzNoGoD writes...
Quote:
how about a self waittill("killed_player");?
Does the same as the health part, only more reliable, and less heavy.

exactly waittill.. So script will stop, because of waiting for ur death and then u can't press F for dissapear the bike.



lineage2soul writes...
Quote:
yes i know i get script from uberpam mod i want to make script whit command like this /rcon bike PLAYER ID i search but its hard to find.


Theoretically u can replace
Code:
self
to
Code:
player[i]
. "i" will be the player's number, that u can find by "/rcon status". The hardest thing would be somehow put in game a number for "i" (i=number).
Maybe u could do some kind of table/window, which will display names of joined player..... It's not a bad idea. If I will have some time, I'll do it next week to uberpam.

edited on Nov. 21, 2010 01:52 pm by Dutch77
Share |
Xylozi
General Member
Since: Jul 12, 2008
Posts: 218
Last: Mar 1, 2012
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Sunday, Nov. 21, 2010 08:47 pm
The simplest way to do rcon commands is to use player ids, which use the getEntityNumber() function, in conjunction with /rcon status so the admin can get the number.
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»