Author |
Topic: search a function |
Tally |
General Member Since: Apr 21, 2005 Posts: 819 Last: Oct 26, 2012 [view latest posts] |
|
|
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". |
|
|
|
kungfooman |
General Member Since: Jun 30, 2012 Posts: 10 Last: Jul 17, 2012 [view latest posts] |
|
|
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. |
|
|
|
Tally |
General Member Since: Apr 21, 2005 Posts: 819 Last: Oct 26, 2012 [view latest posts] |
|
|
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.
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. |
|
|
|
kungfooman |
General Member Since: Jun 30, 2012 Posts: 10 Last: Jul 17, 2012 [view latest posts] |
|
|
|
IzNoGoD |
General Member Since: Nov 29, 2008 Posts: 694 Last: Nov 10, 2012 [view latest posts] |
|
|
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 |
|
|
|
kungfooman |
General Member Since: Jun 30, 2012 Posts: 10 Last: Jul 17, 2012 [view latest posts] |
|
|
|
Tally |
General Member Since: Apr 21, 2005 Posts: 819 Last: Oct 26, 2012 [view latest posts] |
|
|
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. |
|
|
|
kungfooman |
General Member Since: Jun 30, 2012 Posts: 10 Last: Jul 17, 2012 [view latest posts] |
|
|
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. |
|
|
|
VeeTee |
General Member Since: Sep 25, 2011 Posts: 34 Last: Sep 30, 2012 [view latest posts] |
|
|
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? |
|
|
|
kimistatheone |
General Member Since: Mar 1, 2012 Posts: 47 Last: May 2, 2013 [view latest posts] |
|
|
|
|