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

Members Online

»
0 Active | 8 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 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
Next Page
subscribe
Author Topic: Rcon Command Mod
securiity
General Member
Since: Jan 11, 2009
Posts: 63
Last: May 31, 2009
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Saturday, Jan. 31, 2009 10:17 pm
Hello, Im sure most of you are familiar with the eXtreme Mod+ with the Burn, Tourch, Smite, And Those things, well i just had 2 forums about the rcon command to talk in the middle of the screen and in the lower left hud and it worked out fine but now im wondering ,.... it dosent need to be from the extreme mod but can anyone tell me the script For The Following Commands?

Burn, Tourch, Smite, And I really Want the mod to turn it to Day/Night time its used a lot on the zombie servers.

Does Anyone Have An Idea Of The Scripts For Those And Exactly what files they are? like .iwd .gsc cause i would like these on my server because im working on making an rcon tool for them. I know most of those commands also need a Localized String file for it to say Like "You have been torched by the admin" and all that so if anyone can help with any of those scripts and a localized english file that would be FANTASTIC! thanks everyone!
Share |
securiity
General Member
Since: Jan 11, 2009
Posts: 63
Last: May 31, 2009
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Saturday, Jan. 31, 2009 11:10 pm
help???
Share |
securiity
General Member
Since: Jan 11, 2009
Posts: 63
Last: May 31, 2009
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Sunday, Feb. 1, 2009 02:14 am
helpppppppp????? anyone????
Share |
Pedro699
General Member
Since: Jun 19, 2006
Posts: 781
Last: Dec 18, 2010
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Sunday, Feb. 1, 2009 10:58 am
Those features can also be server side - there's no need to have the message localised.

Why don't you have a look at the extreme+ scripts and see how it works?

Don't expect to understand it in few mins. Spend at least several hours looking through the script files. You can use the windows search tools to look for words like "burn" and then investigate where they appear. Then trace the flow of the script until you understand how it works.

You will only start to understand scripting when you actually have a go. Build your file up in stages. Do stuff like trapping a cvar command first, then move on to killing players and playing fx.

If you do use bits of the extreme mod don't forget to credit them ;-)

Oh, and what does 'smiting' do exactly??

edited on Feb. 1, 2009 05:59 am by Pedro699
Share |
securiity
General Member
Since: Jan 11, 2009
Posts: 63
Last: May 31, 2009
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Sunday, Feb. 1, 2009 11:37 am
smiting basically just blows them up its like steping on a mine nothing blows them up they just blow up Uhm pedro i understand the whole concept of learning it myself but ive tryed it several times and i cant seem to get it theres something that never works and they have it aranged so wierd and i also cant find out how to install it on my server and actually get to install it properly do you think you can maybe try to look at the mod for me and tell me if you can come up with any thing there site is www.mycallofduty.net than just go do downloads, and theres 2 sections cod2 and cod4 and look at cod2 v2.3 than do Advanced Server Setup not the others. If you could take a look for me that would be great, Ill keep trying to get it

edited on Feb. 1, 2009 06:38 am by securiity
Share |
securiity
General Member
Since: Jan 11, 2009
Posts: 63
Last: May 31, 2009
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Sunday, Feb. 1, 2009 11:45 am
Actually im looking at v 2.1 try 2.1 its an older version with less things but still has all the things i ask for so it might be easier.
Share |
Pedro699
General Member
Since: Jun 19, 2006
Posts: 781
Last: Dec 18, 2010
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Sunday, Feb. 1, 2009 12:27 pm
Ok, I've spent 10 mins looking for you.

The cvars are initialised in extreme/_ex_cmdmonitor.gsc (found by searching for 'smite')

Line 77 has this: v_FirePlayer = getcvar("fire");

Now tracing v_FirePlayer

Line 110:

if(v_FirePlayer != "") thread messWithPlayer(v_FirePlayer, "fire");

now looking for the messWithPlayer function. (find tool)

its on line 279:
messWithPlayer(PlayerEntID, mode)

Looking for more references to fire

Lines 356-360:
Code:
case "fire":
player thread setFire(v_team);
pmsg = &"CMDMONITOR_FIRE";
amsg = &"CMDMONITOR_FIREB";
break;


This looks like where the actual stuff is kicked off. There are some references to pmsg and asmg - need to look into these later

Theres also a reference to a setFire function. Its not in this file, so need to check for any #includes at the start.

This looks likely:
#include extreme\_ex_punishments;

in extreme/_ex_punishments.gsc, search for 'setFire'

Line 350:
Code:
setFire(v_team)
{
	level endon("ex_gameover");
	self endon("disconnect");
	self endon("ex_spawned");
	self endon("ex_dead");

	if(v_team == "allies" && self.pers["team"] == "allies" && self.sessionstate == "playing") self thread doFire();
		else if(v_team == "axis" && self.pers["team"] == "axis" && self.sessionstate == "playing") self thread doFire();
			else if(v_team == "" && self.sessionstate == "playing") self thread doFire();
}


This seems to call for a doFire function. . .

Try and carry on from there.






Share |
securiity
General Member
Since: Jan 11, 2009
Posts: 63
Last: May 31, 2009
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Sunday, Feb. 1, 2009 01:18 pm
Thanks! !!! ! ! !! ! ! !

So Thats Basically What I Need Right?

And Which Version Did You Get That From?
Share |
securiity
General Member
Since: Jan 11, 2009
Posts: 63
Last: May 31, 2009
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Sunday, Feb. 1, 2009 02:19 pm
How would i add those to a file and onto my server and i also need the localized english with that right? the cmd monitor
Share |
Pedro699
General Member
Since: Jun 19, 2006
Posts: 781
Last: Dec 18, 2010
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Sunday, Feb. 1, 2009 03:03 pm
I was trying to explain how to find the scripts that handle a feature, in this case the 'fire' one. Those scripts will not work just as they are, you will need to rewrite them so that they work on their own.

How would you add it to a file?

Well you already have a sayall feature so you could add it to the same place. Experiment. Next time you post, I'd like to see some of your code that you've tried.

My last post was from v2.1

Share |
Restricted Access Topic is Locked
Page
Next 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

»