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

Members Online

»
0 Active | 101 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 : Soldier of Fortune
Category: SoFII General
General game questions, comments and chat.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
Author Topic: Starter Scripts for those new to SoF II
Scourge~rb
General Member
Since: Dec 23, 2006
Posts: 51
Last: Dec 23, 2006
[view latest posts]
Level 3
Category: SoFII General
Posted: Thursday, Feb. 27, 2003 10:10 pm
I was having a few problems with the script for getting GUIDs so I fixed the script. It was not getting the pb_list quick enough and was doing a condump of an empty console so I put a small amount of wait time in and it works properly now.

bind F11 "vstr dump"
seta list "pb_plist"
seta dump "clear;  wait; vstr list; wait 35; condump GUID.txt; set dump vstr dump1"
seta dump1 "clear; wait; vstr list; wait 35; condump GUID1.txt; set dump1 vstr dump2"
seta dump2 "clear; wait; vstr list; wait 35; condump GUID2.txt; set dump2 vstr dump3"
seta dump3 "clear; wait; vstr list; wait 35; condump GUID3.txt; set dump3 vstr dump4"
seta dump4 "clear; wait; vstr list; wait 35; condump GUID4.txt; set dump4 vstr dump5"
seta dump5 "clear; wait; vstr list; wait 35; condump GUID5.txt; set dump5 vstr dump6"
seta dump6 "clear; wait; vstr list; wait 35; condump GUID6.txt; set dump6 vstr dump7"
seta dump7 "clear; wait; vstr list; wait 35; condump GUID7.txt; set dump7 vstr dump8"
seta dump8 "clear; wait; vstr list; wait 35; condump GUID8.txt; set dump8 vstr dump9"
seta dump9 "clear; wait; vstr list; wait 35; condump GUID9.txt"
Share |
shorej~rb
General Member
Since: Dec 23, 2006
Posts: 14
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII General
Posted: Monday, Mar. 3, 2003 06:57 am
I hadn't thought about that.  I'll give that a try.  I wish I could say to do it on disconnect though.  Like redefine "quit" to be a command of my own that does that.  I could probably make a command to do that.  I hate to bind something like that cause I'm sure I hit it on accident. :)

On Q3 engine's scripting abilities, they're practically non-existent from what I've been able to find out.  There's no flow control, logic expressions, boolean algebra, or usable variables (it appears :().  The only thing you can really build with it is a simple state machine, and I do mean simple where your flow control is essentially sequential statements or the flow control is done by your fingers with binds.  I wish it could do more.  It's surprising that a CLI that supports a couple Bash-isms like ctl-a and ctl-e doesn't have more useful scripting abilities.  Nevertheless we're work with what we've got.

I've been thinking about what I'd like to do and it should probably be something that's integrated into OSP.  I wish OSP was open-source so I could add the features myself.  Anyhow, I've simplified what I'd like to do to a couple things using variables that the ref/admin defines when needed.  The two basic command are say, /ref talk, and /tell.  I'm looking at this like I won't have commands of my own to work with.  What I'm looking at now is being able to

/say "$player $rate-warn-msg"
/ref talk "$player $rate-warn-msg"
/tell $id "$player $rate-warn-msg"

$rate-warn-msg would be something like this:

"^7Your rate is set to ^533.6k^7.  ^4Esc^7, ^4Options^7, ^4Network Settings^7 to fix it.  Please do so now."

and would be static.  With this method the ref/admin would have to define $player to be useful (otherwise just bind the say and be done with it).  $player is simply a short name for the target user (eliminating all the symbol junk and clans from their name and sticking to a word).  The 2nd option, ref talk, would be the same thing.  The last one, tell, is something I'm using more and more of.  Rather than spamming the entire server (or team chat if possible) the warning message directed at one user, I've been /telling them instead.  It allows me to spec them and spam them senseless with annoying colors to make the see the chat at the bottom of the screen.  It's been very effective.  :D  For it to work the ref/admin would have to look up the player's ID and assign it to $id.  This of course relies on Q3 being able to do basic things with variables that other scripting languages can do.

So what do you have in mind?  I've pretty much given up on a command of my own that takes arguments and am now looking at a command that uses that uses two predefined variables.  Less functional but also still less typing.  Binding these isn't useful except for perhaps when specing the target you're also spamming to see if their actions indicate that they finally noticed.  Otherwise it would just be a command run from the CLI.

Thanks for looking into it
 Pedro

PS==> Come play on Hexapalooza CTF sometime.  Fun crowd.  www.hxxl.com.
Share |
spike232~rb
General Member
Since: Dec 23, 2006
Posts: 5892
Last: Dec 23, 2006
[view latest posts]
Level 10
Category: SoFII General
Posted: Thursday, Mar. 20, 2003 06:12 pm
Quote (Nologic @ Mar. 18 2003, 10:51 pm)
PS could we get a mod to maybe clean up the thread, so its easier to find stuff.

Maybe leave the last 5 or 6 misc message's till they are a week old then give them the axe as well. :)

Done, 2 pages shorter :p

i added a lot of quotes in to the posts so its still ovious what the questions were, and so it dont look like 3 pages of u talking to ur self ;)
Share |
[ARU]TriGGer HaPPy (SLO)~rb
General Member
Since: Dec 23, 2006
Posts: 2
Last: Dec 23, 2006
[view latest posts]
Level 0
Category: SoFII General
Posted: Thursday, Mar. 20, 2003 08:39 pm
Hi!

Wel this is qute a helfull topic and i was hoping someone might hellp me go into the right direction.

I would like to make a scrpit that would allow my caracter to move left and right very fast. It is similar to pressing left and right key very fast. Well the problem is not the movement. The thing is when this bind is executing itself i cannot use mousebuttons (for fire). Is there anyway to overcome this problem?

Oh and one more thing. Let me give and example: In the game u drop the console en execute a certain script (run cfg file) with comman /exec filename.cfg. Is there anyway to un-run this script so thet it won't be cative anymore?
Share |
Scourge~rb
General Member
Since: Dec 23, 2006
Posts: 51
Last: Dec 23, 2006
[view latest posts]
Level 3
Category: SoFII General
Posted: Saturday, Mar. 22, 2003 01:00 am
The type of script your trying to make can't be done properly. Once you start a script with the wait command it takes over you movement and shooting till it's finished. The only thing you can do is look with the mouse till your script is over. So now you know I'm sure that you'll put your scripting knowledge to a more friendly usage.
Share |
|XyPe|~rb
General Member
Since: Dec 23, 2006
Posts: 67
Last: Dec 23, 2006
[view latest posts]
Level 3
Category: SoFII General
Posted: Thursday, Mar. 27, 2003 11:23 am
ok i've seen many many many scripts in here :)

LOL

now my n00b question... if i wanna use such a script? should i place it in a *.cfg file and execute it? or how to enable it?
Share |
spike232~rb
General Member
Since: Dec 23, 2006
Posts: 5892
Last: Dec 23, 2006
[view latest posts]
Level 10
Category: SoFII General
Posted: Thursday, Mar. 27, 2003 01:21 pm
if u only have a few jus put it in ur autoexec.cfg

if u have a lot or want to be orginised, put them in there seprate cfg files and then execute each one fro mthe autoexec.cfg using

exec file.cfg
Share |
Mack~rb
General Member
Since: Dec 23, 2006
Posts: 6
Last: Dec 23, 2006
[view latest posts]
Level 0
Category: SoFII General
Posted: Monday, Apr. 7, 2003 07:58 am
This msg went to wrong plaze first, so Ill try again...  :s9:

Nice scripts u´ve posted.. I ´ve got a little problem with one of mine...
I use inverted mouse and this script turns that always off.

If u could please help me
here´s the script:

seta cg_sensitivity "9"
seta cg_crosshairSize "12"
seta cg_crosshairX "-2"
seta cg_crosshairY "-3"
seta mz_chA "vstr mz_chLight"
seta mz_chB "cg_crosshairRGBA 1,1,1,1"
seta mz_chDark "cg_crosshairRGBA 0,1,0,1"
seta mz_chLight "cg_crosshairRGBA 1,1,1,1"
seta mz_chDark_on "set mz_chA vstr mz_chDark;set mz_chSwitch vstr mz_chLight_on;vstr mz_chDark"
seta mz_chLight_on "set mz_chA vstr mz_chLight;set mz_chSwitch vstr mz_chDark_on;vstr mz_chLight"
seta mz_chSwitch "vstr mz_chDark_on"
bind * "vstr mz_chSwitch"
seta cg_crosshairRGBA "0.7,0.7,0.7,1"
seta cg_crosshairFriendRGBA "1,0,0,1"
seta mz_on "weaptoggle primary;vstr mz_chA;cg_drawcrosshair 1;cg_sensitivity 9;cg_crosshairsize 12;cg_crosshairX 0;cg_crosshairY 0;m_pitch 0.010;m_yaw 0.018;set mz_switch vstr mz_off"
seta mz_off "weaptoggle secondary;vstr mz_chA;cg_drawcrosshair 1;cg_sensitivity 10;cg_crosshairsize 32;cg_crosshairX 0;cg_crosshairY 0;m_pitch 0.018;m_yaw 0.022;set mz_switch vstr mz_on"
seta mz_switch "vstr mz_on"
bind MWHEELUP "vstr mz_switch"
Share |
Mack~rb
General Member
Since: Dec 23, 2006
Posts: 6
Last: Dec 23, 2006
[view latest posts]
Level 0
Category: SoFII General
Posted: Monday, Apr. 7, 2003 08:02 am
Btw.. this script changes the size of crosshair+sensitivity between firstweapon and second...
Just said to clear for those who dont know much about scripts..
Like me :D
Share |
(Bigman)E=Mc2~rb
General Member
Since: Dec 23, 2006
Posts: 2
Last: Dec 23, 2006
[view latest posts]
Level 0
Category: SoFII General
Posted: Monday, Apr. 7, 2003 06:40 pm
Could you also list how to do the vsay_team things? I want to bind these to certain keys and say i need backup just by pushing a key on my keyboard. Please show me all of them. Thank you in advance.
Share |
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
MODSonline.com Forums : Soldier of Fortune : SoFII General

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

»