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

Members Online

»
0 Active | 109 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: search a function
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Saturday, Jun. 30, 2012 01:04 pm
kungfooman writes...
Quote:
The only problem is, that "status" is a command. When he would use B3 to ask the "status" via rcon, then B3 could set a "cvar_status".

This way, the IP is transported into the "GSC-Athmosphere". Now he can strtok() the "cvar_status" on every player_connect() and assign every player an IP.


This is incorrect. There is no way you can inject third party cvars into the COD scripting language; there is no such thing as a "GSC-Atmosphere".
Share |
kungfooman
General Member
Since: Jun 30, 2012
Posts: 10
Last: Jul 17, 2012
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Saturday, Jun. 30, 2012 02:10 pm
Tally,

i've written my own "B3" and i know really well, what you can do and what not.

"GSC-Atmosphere" is what you can access through .gsc-files. And you can access cvars with getcvar()/setcvar().

B3 can access the cvars also, through: /rcon set $key "$value".

Now, just set a cvar with B3 with the content of "status", read its value from GSC, parse it, done. [wave]
Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Saturday, Jun. 30, 2012 03:04 pm
kungfooman writes...
Quote:
Tally,

i've written my own "B3" and i know really well, what you can do and what not.

"GSC-Atmosphere" is what you can access through .gsc-files. And you can access cvars with getcvar()/setcvar().

B3 can access the cvars also, through: /rcon set $key "$value".

Now, just set a cvar with B3 with the content of "status", read its value from GSC, parse it, done. [wave]


It is pretty self-evident to even a novice scripter that you can use getCvar() to gain the value of a var in a GSC file. What I am saying is that unless you define your vars through the built-in scripting language you cannot get them.

BTW - GSC is not a language. It is a file format. Talking about a "GSC-Atmosphere" in this manner is the same as talking of a "ZIP-Atmosphere". Pretty stupid if you think about it.
Share |
kungfooman
General Member
Since: Jun 30, 2012
Posts: 10
Last: Jul 17, 2012
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Saturday, Jun. 30, 2012 03:35 pm
Tally,

with getcvar() you can ask for every cvar on the server.

Im calling the built-in scripting language GSC, just because its short and the developers of it didnt advised a name. So, when i say GSC im speaking of the language, as an interpreted instance of the file format.

I think "GSC-Atmosphere" describes the situation very well.

Have a nice saturday,
kung foo man
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Saturday, Jun. 30, 2012 03:50 pm
kungfooman writes...
Quote:
Tally,

with getcvar() you can ask for every cvar on the server.

Im calling the built-in scripting language GSC, just because its short and the developers of it didnt advised a name. So, when i say GSC im speaking of the language, as an interpreted instance of the file format.

I think "GSC-Atmosphere" describes the situation very well.

Have a nice saturday,
kung foo man


try codscript instead of GSC-Atmosphere
Share |
kungfooman
General Member
Since: Jun 30, 2012
Posts: 10
Last: Jul 17, 2012
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Saturday, Jun. 30, 2012 04:10 pm
Hi IzNoGod!

With GSC-Atmosphere i wanted to describe what you can "reach" inside of it. I dont wanted to refer to the scripting language itself.

In the atmosphere you have the possibility to read /scriptdata/, get cvars and so on. "Atmosphere" is a common word for describing limitations (e.g. in sandbox-systems, here used for a scripting engine).

Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Saturday, Jun. 30, 2012 04:59 pm
kungfooman writes...
Quote:
Tally,

with getcvar() you can ask for every cvar on the server.

Im calling the built-in scripting language GSC, just because its short and the developers of it didnt advised a name. So, when i say GSC im speaking of the language, as an interpreted instance of the file format.

I think "GSC-Atmosphere" describes the situation very well.

Have a nice saturday,
kung foo man


The scripting language that IW invented is commonly referred to as CODscript. The developers at IW also referred to it that way, so yes: they did give it a name. It's just that newbies to the Call of Duty community continually try to reinvent the wheel and a lot of them refuse to call it by its proper name.

FYI - the file format .GSC was named after the initial letters of the former CEO of IW: Grant Stuart Collier.
Share |
kungfooman
General Member
Since: Jun 30, 2012
Posts: 10
Last: Jul 17, 2012
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Saturday, Jun. 30, 2012 06:23 pm
Okay, next time i will call it CODscript.

Tally writes...
Quote:

FYI - the file format .GSC was named after the initial letters of the former CEO of IW: Grant Stuart Collier.



Thanks for the information. I thought its the acronym for Game SCript or Game Script Code.
Share |
VeeTee
General Member
Since: Sep 25, 2011
Posts: 34
Last: Sep 30, 2012
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Sunday, Jul. 1, 2012 07:41 pm
Quote:
FYI - the file format .GSC was named after the initial letters of the former CEO of IW: Grant Stuart Collier.


Source?
Share |
kimistatheone
General Member
Since: Mar 1, 2012
Posts: 47
Last: May 2, 2013
[view latest posts]
Level 2
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, Nov. 28, 2012 08:04 pm
hey.

i need help again.

is there any function that i can control punkbuster commands?

my problem is next: i use pb_sv_getss 3 times, and i cant take more shot in 10 minutes.
is there any function in gsc athmosphere, that i can make screenshots?
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

»