Go Back   AvaMods 5.o Forums > AvaMods - General > Media Dump
       Log In
Log In | Lost Password | Register


Media Dump Post videos, pics, porn, etc...

Reply
Views: 5390 - Replies: 31  
Share LinkBack Thread Tools
  #11 (permalink)  
Old January 6th, 2007
forum n00b
 
Join Date: January 3rd, 2007
Status: No Status
Posts: 3
Default

Quote: Originally Posted by Jonny Automatic View Post
read only?

how do i do that though... wait nm.. duh.. i just remebered.. thanks
Reply With Quote
  #12 (permalink)  
Old January 6th, 2007
Jonny Automatic's Avatar
Former AvaMods Admin & Excessive Faggotry
 
Join Date: October 8th, 2006
Location: the shire
Status: No Status
Posts: 1,692
Default

dunno if it will fix... but it seemed a good idea..
Reply With Quote
  #13 (permalink)  
Old January 6th, 2007
coltron's Avatar
Helpful Avamods Admin
 
Join Date: September 7th, 2006
Location: CLEVELAND OHIO
Status: :_
Posts: 1,412
Send a message via AIM to coltron
Default

Quote: Originally Posted by iTzAleX{n00bish} View Post
can sum1 tell me how to put it in a folder and wutever

lik how do i put /steam/steamapps/YOURNAME/day of defeat/dod/sprites folder in?


you replace the .spr

stop eating paint.
Reply With Quote
  #14 (permalink)  
Old January 8th, 2007
iTzAleX{n00bish}'s Avatar
forum regular
 
Join Date: December 4th, 2006
Location: New York
Status: No Status
Posts: 213
Send a message via AIM to iTzAleX{n00bish}
Default

yea mostly i never had a computer class in grade or middle school...
Reply With Quote
  #15 (permalink)  
Old January 8th, 2007
HAWKEYE's Avatar
AvaMods Admin
 
Join Date: December 13th, 2006
Location: New York
Status: No Status
Posts: 1,250
Default

i am freakin comp illiterate someone help me >.< withe crosshairs thing.


"A leaders words could be powerful, but they're not bullet proof."- Me
Reply With Quote
  #16 (permalink)  
Old January 10th, 2007
forum n00b
 
Join Date: January 3rd, 2007
Status: No Status
Posts: 3
Default

this is funny.. lol..
Reply With Quote
  #17 (permalink)  
Old February 14th, 2007
Sapphyre's Avatar
forum member
 
Join Date: January 26th, 2007
Location: London, UK
Status: No Status
Posts: 64
Default

I'm bloody clueless at this

I've done the first bit placing CustomXHair.spr into the right folder

so...

1. How do I download or save this userconfig.cfg? Am I meant to create a notepad for it?

2. What does bind a key ingame to "xtog" mean?
Reply With Quote
  #18 (permalink)  
Old February 14th, 2007
coltron's Avatar
Helpful Avamods Admin
 
Join Date: September 7th, 2006
Location: CLEVELAND OHIO
Status: :_
Posts: 1,412
Send a message via AIM to coltron
Default

for usercfg.cfg you make that file in notepad yes.. save all that xtog crap in it.

then you go in your console in game, and type bind "key" xtog. that lets you cycle throught the different ones.
Reply With Quote
  #19 (permalink)  
Old February 15th, 2007
santa_sh0t_tupac's Avatar
forum regular
 
Join Date: November 25th, 2006
Location: Alabama. Where beating your wife is fine and gambling is illegal because it says so in the Bible.
Status: No Status
Posts: 181
Default Here we go.

Quote: Originally Posted by Emerald
What does bind a key ingame to "xtog" mean?

Ok. Quick breakdown of the XTOG script and a mini-script lesson while we're at it. I will assume a basic knowledge of computers and concepts (such as VARIABLES).

Code:
alias xtog "xtog1" alias xtog0 "gl_spriteblend 1; cl_xhair_style 0; alias xtog xtog1" . . . alias xtog20 "gl_spriteblend 0; cl_xhair_style 16; alias xtog xtog0"

ALIAS. The alias command accepts 2 parameters (also called arguments) of the format:
Code:
alias NAME "COMMANDS"

It assigns the "COMMANDS" portion to the function NAME. This simply means that we can access "COMMANDS" by using NAME. The reason we use quotes is to be more specific. It will accept unquoted arguments, however, to BE SURE that you don't include unwanted information, we use the quotation marks as DELIMITERS.

Quote:
de·lim·it·er (dĭ-lĭm'ĭ-tər) Pronunciation Key
n. Computer Science
A character or sequence of characters marking the beginning or end of a unit of data.

EXAMPLE:

Code:
alias CHANGEMYNAME "name MeinGottHasSexyManBoobs"

So whenever I were to use CHANGEMYNAME..it would actually execute the information inside the quotations, which is simply to change your name.

A nice feature of the ALIAS command..is that you can assign it to other ALIAS'ed code blocks!

EXAMPLE:

Code:
alias CHANGEMYNAME "ABC" alias ABC "name DiamondLooksLikeJesus"

So the first line says -Hey..whenever they use CHANGEMYNAME..they want to execute ABC.- You can see in the 2nd line that ABC holds the command to change a name. So it'd be like:
CHANGEMYNAME ---> execute "ABC" ---> ABC ---> execute "name DiamondLooksLikeJesus"

So the first line of our script file so far:
Code:
alias xtog "xtog1"

***NOTE: Generally, when programming, you want to name variables in a way that makes it easy to figure out what they are. XTOG stands for "X"hair "TOG"gle.***

This line is important. We will use THIS FUNCTION NAME (XTOG) to assign a key to. This key will cycle us through each crosshair. So we want XTOG to execute "xtog1" whenever we call it. Easy enough. On to line 2 (and the subsequent lines):

Code:
alias xtog0 "gl_spriteblend 1; cl_xhair_style 0; alias xtog xtog1"

You see those semi-colons? They act as delimiters for seperate commands. This way we can include multiple commands inside of one code block. So we know that xtog0 is going to execute some commands. What are they? Let's go one by one.

Code:
gl_spriteblend 1;

This piece of code is assigning a value to a variable. More specifically, these variables are called CVARS ("Configuration Variables"). They allow us to set information that the target program uses. In this case, we're setting information for the half-life engine to use. Some CVARS in half-life/HL mods are preceded by IDENTIFIERS. If you see something with "gl_" then you know that variable directly deals with the client side graphics. "sv_" is a server set variable. "cl_" is a client side generic variable. "r_" deals with client side rendering. Here is a comprehensive list of CVARS (though by no means a complete list).

http://commands.planethalflife.games...ds/index.shtml

So we find that gl_spriteblend turns on/off (by specifying a 1 or 0)..well..sprite blending.

Code:
cl_xhair_style 0;

Ah. We know immediately that this is a CVAR..and the preceding identifier is "cl_". This means it's a client side variable. It happens to set the number of the crosshair in your .spr file that you would like to use. A value of "0" here sets your crosshair to the default dod crosshair you had selected.

Code:
alias xtog xtog1

What's going on here? We're re-assigning XTOG? That's right. This is the way you make a toggle script. This will allow us to assign XTOG to one key..then be able to press that one key repeatedly to cycle through commands. We just redirect the original alias to the next bit of code we want to happen whenever the key is pressed. So as it stands..when this piece of code executes..the next time we press the key we bound to XTOG..it will execute XTOG1.

Code:
alias xtog20 "gl_spriteblend 0; cl_xhair_style 16; alias xtog xtog0"

I included this one so you can see the last piece of code that resets the whole cyclic toggle. Specifically:

Code:
alias xtog xtog0

This piece of code will reset your bound XTOG key...and make it execute xtog0 the next time the key is pressed. Thus, the whole thing loops infinitely.

This brings us, finally, to "what does binding 'xtog' to a key mean?" In order to execute all those nifty functions we have...we have to be able to tell the game to do so. We can't just yell at our monitor. Half-life allows you to BIND your keys to different functions. This means that whenever we press that key..it will execute the function(s) we told it to. "xtog" is the function we need to call to make our script cycle through. There are multiple ways of binding keys. For our example, you'll want to put this piece of code somewhere in your USERCONFIG.CFG.

General BIND command format:
Code:
bind "KEY" "COMMANDS"

Generic XTOG BIND.
Code:
bind "KEY" "xtog"

Replace KEY with the KEY you want to use. For example:

Code:
bind "K" "xtog"

This will make it so that when I press K..it will execute "xtog".

*The USERCONFIG.CFG will only execute when a particular game is run. This way we can change bindings depending on our mod. So I can have different CS binds from DOD.*

I hope this helped in some way. If I've confused the tar piss out of you..I apologize. This was a very, very quick explanation with little depth and the assumption you understand certain computer concepts. If you have questions..feel free to PM me. I'll be more specific with more exacting questions.

GO GO GO GO GO GO GO GO GO OWNED.
Reply With Quote
  #20 (permalink)   diamond-optic is Special  
Old February 15th, 2007
diamond-optic's Avatar
i dont want a goldfish
 
Join Date: March 13th, 2005
Location: Upstate New York
Status: hazey
Posts: 3,259
Default

i bet that confuses ppl even more lol

Quote: Originally Posted by ThePowerCosmic in regards to AvaMods
They are the type of people that are absolutely destroying the fabric of america and everything that goodness stands for.

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 01:55 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.