new keys?

Post your scripting questions / solutions here

Moderator: Moderators

Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

Rookie One wrote:It won't be usable in bots as you cannot get cvars from players, only the server.

Try this:

Code: Select all

alias codnade "locationprint 275 100 THROWING 0; useweaponclass grenade; wait; wait; wait; +attackprimary; wait; wait; wait; -attackprimary; say *35; +uselast"
The + in front of a command makes it being executed when a button is pressed. The - command is executed when the button is released. E.g. when you press your fire, +attackprimary is done. When you release it, -attackprimary is done.
Wait takes miliseconds as parameters. Giving it a paramter of .6 if quite pointless.
if the players knew what new binds to add, and i imagine players with that mod would know what to add. It could be done. I have somethign similar on new ac so multiple admins can talk to the mod.
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

It's not going to work as you cannot read players' cvars via script.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

Rookie One wrote:It's not going to work as you cannot read players' cvars via script.
no, But u dont have to try and read the client.

EDIT: jv pointed out to me something, i wud be giving rcon to everyone and he dotn think its a good idea..personaly i wudnt care though..:S
Last edited by Elgan on Sat Mar 19, 2005 3:39 pm, edited 1 time in total.
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

So how do you issue the commands, then?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

Rookie One wrote:So how do you issue the commands, then?
the same way as above cept with each player having rcon
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Lol... Yeah, with everyone able to screw up your server. Brilliant idea. :?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

Rookie One wrote:Lol... Yeah, with everyone able to screw up your server. Brilliant idea. :?
i see the downfall of that.hehe, i dont see why any1 wud though:S
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

well why does anyone cheat on the server? Because theyre little ******s
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

Wait takes miliseconds as parameters
oh, the scripting wait takes it in seconds...
i hate it how they change functions from file type to file type.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
SSUK
Private
Posts: 8
Joined: Sun Feb 20, 2005 8:50 pm
Location: Yorkshireman

Post by SSUK »

sorry to go offtopic but Lizard your Avatar is by far the best I have ever seen.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Master-Of-Fungus-Foo-D wrote:now what would explain something like set alias "dog" "say IM A CHEATING LITTLE ******* KICK ME!!!!! KICK ME!!!!!" appearing in my cfg file?
some horses butt server is useing stufftext to add that alias to your unnamedsoldier.cfg only way to stop it is to make unnamedsoldier.cfg read only but then you have to make it writeable again to add to it again
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

i do that and a lot of server admins flip out because they run programs and shiz that write to my config, and i get tired of it and read-only it, since i usually don't make new binds, it can be a hassle, but it's worth it to not have my rate, settings, custom binds, force models, etc changed. i don't take kindly to crackers changing my stuff.

@SSUK: thanks 8)
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

i dont like some stuff tha gets done to me. though i have ot have it read and write so i cna mod faster.

Also if i make somehting that mgiht use the file for good its annoying if it cant work cos some other bad admins made ppl read only it.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

The thing is that a stufftext that changes something like noclip will make it so that when you are testing your map ingame you won't be able to use noclip to fly around to check things unless you exit the game and edit your cfg
Image
Post Reply