21 Jul 10, 11:21AM
Thnks Billybob
|
Scripts
|
|
21 Jul 10, 11:21AM
Thnks Billybob
21 Jul 10, 11:23AM
I use this, with a much longer sleep (1500), but I still get the occasional black screen, so don't rely on it if you absolutely must have that screenshot.
21 Jul 10, 02:31PM
Ronald_Reagan Wrote:I think you would need to replace $lightscalerate with the correct value for that to work.What would be the correct value?
21 Jul 10, 08:53PM
(21 Jul 10, 02:31PM)DES|V-Man Wrote:Ronald_Reagan Wrote:I think you would need to replace $lightscalerate with the correct value for that to work.What would be the correct value? Whatever you would want, that string is leftover from the rave script, so for people who already have the rave script installed, it will automatically run at every half second (the default is 500 ms). For people who haven't installed the rave script it would probably pop up with an error saying something like "what the hell is this string!?!?!". The correct value is whatever you want it to be, but 500ms is a good rate.
:/
You shouldn't need to edit that portion of the script, if you have installed rave.cfg and execute it from autoexec.cfg. You can change that value in-game by opening the associated menu. On the other hand, you may experience problems if you try to make an alias with "$" in it.
21 Jul 10, 09:12PM
...
I'm pretty sure we are agreeing now, and your making up illrelevent topics, whatever, I'll trust you on this one. Just saying, if you dont have the rave script installed, AC wont know what $lightchangerate means.
NVM, I figured it out.
:D Code: //Takes a screen shot of a person IP
alias banshot [
if (> (listlen $arg2) 0) [setadmin 1 $arg2] []
sleep 300 [whois $arg1]
sleep 600 [vote 2; toggleconsole]; sleep 200 [screenshot]
sleep 900 [toggleconsole; setadmin 0]
]Should work :)
I had to spam it in more places.
This neat script allows you to cancel a vote of yes or no within five seconds. To cancel, press the opposite vote key. If you wish to skip the delay and vote straight away press the key twice. The best part is, if you cancel your vote you can still change your mind! Now, DES|GeneralDisarray made more than half of this but the basic idea with the two-ton aliases is mine :D http://gibstick.pastebin.com/p3DwBwmy http://one.zeelot.webfactional.com/forum...post_25091 Code: //Delayed vote script by DES|GeneralDisarray and Gibstick
// Reset the aliases just in case
cancelallvotes = [ votingno = 0; votingyes = 0; votetimestamp = 0]
cancelallvotes
vote_exec1 = [ vote 1; echo "0You voted yes"; cancelallvotes ]
vote_exec2 = [ vote 2; echo "3You voted no"; cancelallvotes ]
// $arg1 = millis
delayed_vote = [
// only bother if we're actually due
if (= ($votetimestamp) ($arg1) ) [
if (= ($votingyes) 1) [ vote_exec1 ]
if (= ($votingno) 1) [ vote_exec2 ]
] [
echo "All this wait for nothing..."
]
]
delayed_vote_start = [ votetimestamp = (millis); sleep 5000 [ delayed_vote votetimestamp ] ]
delayvote1 = [
if (= ($votingyes) 1) [
// voting yes when already have voted yes, do it immediately
vote_exec1
] [
if (= ($votingno) 1) [
// changed mind, cancel
echo "6You cancelled your F2"; cancelallvotes
] [
// normal/first vote
echo "Voting YES in five seconds!"; votingyes = 1; delayed_vote_start
]
]
]
delayvote2 = [
if (= ($votingno) 1) [
// voting no when already have voted no, do it immediately
vote_exec2
] [
if (= ($votingyes) 1) [
// changed mind, cancel
echo "6You cancelled your F1"; cancelallvotes
] [
// normal/first vote
echo "Voting NO in five seconds!"; votingno = 1; delayed_vote_start
]
]
]
bind "F1" [delayvote1]
bind "F2" [delayvote2]
//Useless technical notes
//Script uses alias variables to determine the current voting state. If one is changed then the action is different, that is how the vote is "cancelled". But it is impossible to cancel a sleep and we ran into this problem. So GD came up with the miraculous and ingenious solution to use a timestamp to associate one F1/F2 with another. But he insisted that we use normal alias commands instead of push and pop. :D
22 Jul 10, 02:08AM
If you would want to cancel a vote, why can't you simply get admin and press F2?
LOL wolf. I'd yell at you if I didn't know you any better. :) This lets you cancel the vote command itself after you press F1 or F2 within five seconds. It does not allow you to stop any ongoing vote as a normal player (unless yours happens to be
the one that fails/passes the vote). That'd be one helluvan exploit.
22 Jul 10, 03:44AM
Code: alias panicvote [ // Force any vote to fail instantly
(vote 2)
(echo "You voted no!")
(sleep 10 [takeadmin])
(sleep 20 [setadmin 0])
]:P
22 Jul 10, 03:58AM
Still don't get it :P
22 Jul 10, 05:13AM
It lets you change your mind even after you already voted.
22 Jul 10, 07:30AM
But if you vote in the last 4-1 seconds of the vote it won't register.
22 Jul 10, 11:29AM
Code: //Saves ban related screenshots into specified folder within Assaultcube\screenshots. Folder will automatically be //created.
//Please not that it will need reworking for 1.1 depending on whether the jpg or png option is selected.
//GD will re-publish once 1.1 is done
alias banscreenshot [
banssfilename = (concatword (at (timestamp) 0) - (at (timestamp) 1) - (at (timestamp) 2) _ (at (timestamp) 3) - (at (timestamp) 4) - (at (timestamp) 5) )
screenshot (concatword screenshots/bans/ ($banssfilename) .bmp)
]
//written by GeneralDisarrayExample of it in use Code: alias banshot [
if (> (listlen $arg2) 0) [setadmin 1 $arg2] []
sleep 300 [whois $arg1]
sleep 600 [vote 2; toggleconsole]
sleep 700 [banscreenshot]
sleep 900 [toggleconsole; setadmin 0]
]
alias banscreenshot [
banssfilename = (concatword (at (timestamp) 0) - (at (timestamp) 1) - (at (timestamp) 2) _ (at (timestamp) 3) - (at (timestamp) 4) - (at (timestamp) 5) )
screenshot (concatword screenshots/bans/ ($banssfilename) .bmp)
]
24 Jul 10, 03:13AM
Is it possible to set separate sensitivities to each weapon? To be clear, when you have the SMG with "x" sensitivity, it should be able to change it to "y" when SR is picked from the weapon menu. I use three keybinds for this atm. But without messing with keybinds it would be nice to have different sensitivities for each. Something starts with similar to loadcrosshair script maybe? Code: alias sensitivitychange [
if (= (curweapon) 0) [sensitivity 2.6] [] //knife
if (= (curweapon) 1) [sensitivity 2.6] [] //pistol
if (= (curweapon) 2) [sensitivity 2.6] [] //shotgun
if (= (curweapon) 3) [sensitivity 1.8] [] //subgun
if (= (curweapon) 5) [sensitivity 2.2] [] //assault rifle
if (= (curweapon) 6) [sensitivity 2.6] [] //grenades
if (= (curweapon) 7) [sensitivity 2.2] [] //sniper rifle
24 Jul 10, 03:18AM
(24 Jul 10, 03:13AM)Tolga Wrote:(19 Jul 10, 05:26PM)DES|V-Man Wrote: Yes it is possible, to do it all you need to now enter is Code: bind "MOUSE1" [attack; sensitivitychange]Code: if (= (curweapon) 7) [sensitivity 2.2] [] //sniper rifleCode: if (= (curweapon) 4) [sensitivity 2.2] [] //sniper rifleThe change is that the weapon is 4, not 7.
Yep, I use this:
Code: newmenu Weapons
menumdl weapons/assault/menu mapmodel 75 12
menuitem "MTP-57 Assault Rifle" "nextprimary 5;echo MTP-57 Assault Rifle selected;sensitivity 4.1" "chmenumdl Weapons weapons/assault/menu mapmodel 75 12"
menuitem "A-ARD/10 Submachine Gun" "nextprimary 3;echo A-ARD/10 Submachine Gun selected;sensitivity 4.1" "chmenumdl Weapons weapons/subgun/menu mapmodel 75 12"
menuitem "Precision Tech AD-81 Sniper Rifle" "nextprimary 4;echo Precision Tech AD-81 Sniper Rifle selected;sensitivity 2.8" "chmenumdl Weapons weapons/sniper/menu mapmodel 75 12"
menuitem "V-19 Combat Shotgun" "nextprimary 2;echo V-19 Combat Shotgun selected;sensitivity 2.8" "chmenumdl Weapons weapons/shotgun/menu mapmodel 75 12"not sure if putting it in autoexec will change the menu, but you can try. If not, change the Weapons menu in menus_settings.cfg.
24 Jul 10, 04:09AM
It didn't work Splatz, thanks.
Putting R4zor's script directly into autoexec added four more weapons with pre-defined sensitivities in the script. So there were 8 weapons in weapon menu. Changing the Weapons menu in menus_settings.cfg worked properly with four weapons with wanted sensitivities. However I liked the 8 weapon menu more and will use it:) Thank you R4zor.
24 Jul 10, 04:20AM
24 Jul 10, 04:34AM
LoL. I knew I should have written it in a better way :P I need more progress in English, I guess.
24 Jul 10, 06:16AM
I found it funny, thanks for your broken english. :)
24 Jul 10, 02:50PM
A very small change to the banscreenshot script, confirmed to work on linux and windows:
Code: alias banscreenshot [
banssfilename = (concatword (at (timestamp) 0) - (at (timestamp) 1) - (at (timestamp) 2) _ (at (timestamp) 3) - (at (timestamp) 4) - (at (timestamp) 5) )
screenshot (concatword screenshots/bans/ ($banssfilename) .bmp)
]Again, once 1.1 is out this will need a minor modification.
27 Jul 10, 01:20AM
(This post was last modified: 27 Jul 10, 01:21AM by NightHawkd.)
Simple way to check clan members during a game in a menu.
Just change the names to fit your clan members. The command to see you list is /showmenu "Clan Roster" This is my first script so Im happy i did it tis good and it worked, I also had a little help from Ronald_Reagan Code: // main roster
newmenu "Clan Roster" //This is the ~TgS~ Clan Roster
alias clanroster [showmenu "Clan Roster"]
menuitem "~TgS~NightHawkd" [showmenu NightHawkd]
menuitem "~TgS~Droid" [showmenu Droid]
menuitem "~TgS~Reloading" [showmenu Reloading]
menuitem "~TgS~Tyler" [showmenu Tyler]
menuitem "~TgS~UseSniPeZ" [showmenu UseSniPeZ]
menuitem "~TgS~Valor" [showmenu Valor]
menuitem "~TgS~M!K3" [showmenu M!K3]
menuitem "~TgS~SogeKing" [showmenu SogeKing]
menuitem "~TgS~Frittoss" [showmenu Frittoss]
menuitem "~TgS~modus-ops" [showmenu modus-ops]
menuitem "~TgS~NoFear" [showmenu NoFear]
menuitem "~TgS~XsamaX" [showmenu XsamaX]
menuitem "~TgS~Praetor" [showmenu Praetor]
menuitem "~TgS~Airbellum" [showmenu Airbellum]
menuitem "~TgS~Google" [showmenu Google]
menuitem "~TgS~iNoob." [showmenu iNoob.]
menuitem "~TgS~Moose" [showmenu Moose]
menuitem "~TgS~L1994J" [showmenu L1994J]
menuitem "~TgS~Varon" [showmenu Varon]
menuitem "~TgS~MANNY^~^" [showmenu Manny^~^]
menuitem "Close" closemenu
//start player bios
newmenu NightHawkd
menuitem "Position; Co-Leader"
menuitem "Close" closemenu
newmenu Droid
menuitem "Position; Leader"
menuitem "Close" closemenu
newmenu Reloading
menuitem "Position; Co-Leader"
menuitem "Close" closemenu
newmenu Tyler
menuitem "Position; Council Member"
menuitem "Close" Closemenu
newmenu UseSniPeZ
menuitem "Position; Member"
menuitem "Close" closemenu
newmenu Valor
menuitem "Position; Counsil Member"
menuitem "Close" closemenu
newmenu M!K3
menuitem "Position; Member"
menuitem "Close" closemenu
newmenu SogeKing
menuitem "Position; Member"
menuitem "Close" closemenu
newmenu Frittoss
menuitem "Position; Web Developer and Member"
menuitem "Close" closemenu
newmenu modus-ops
menuitem "Position; Member"
menuitem "Close" Close menu
newmenu NoFear
menuitem "Position; Member"
menuitem "Close" closemenu
newmenu XsamaX
menuitem "Position; Member"
menuitem "Close" closemenu
newmenu Praetor
menuitem "Position; Member"
menuitem "Close" closemenu
newmenu Airbellum
menuitem "Position; Member"
menuitem "Close" closemenu
newmenu Google
menuitem "Position; Member"
menuitem "Close" closemenu
newmenu iNoob.
menuitem "Position; Member"
menuitem "Close" closemenu
newmenu Moose
menuitem "Position; Member"
menuitem "Close" closemenu
newmenu L1994J
menuitem "Position; Member"
menuitem "Close" closemenu
newmenu Varon
menuitem "Position; Member"
menuitem "Close" closemenu
newmenu Manny^~^
menuitem "Position; Member"
menuitem "Close" closemenu
27 Jul 10, 01:36AM
NightHawkd, nice job but i just dont see why anyone would use it, not even clan members.
But still nice job. I harte doing menu's, they hurt my brain :/
27 Jul 10, 02:12AM
It'd be incredibly useful if it had IPs ^^
For those servers who don't have nick protection.
27 Jul 10, 02:17AM
Like, listing IPs? as in,
Code: newmenu NightHawkd
menuitem "Position; Co-Leader"
menuitem "IP: xxx.xxx.xx"
menuitem "Close" closemenu
27 Jul 10, 03:12AM
ya they mean that Reagan but guys that would only work if your members had static ip addresses and ty for saying i did ok for my first time.
|
|
« Next Oldest | Next Newest »
|