Author Topic: Custom commands (restated)  (Read 7026 times)

sSopris

  • Posts: 221
  • Turrets: +26/-11
Custom commands (restated)
« on: September 29, 2007, 11:13:10 pm »
I'm trying to make !map a custom command because I don't have it but I don't know what to put in the tcmd file.

I have "map" but what do I put that will make the console use whatever the player inputs?
"Oh gosh....oh gosh! TEXTURE ERROOOOOOOR!!!"
"Shoot it! Shoot it!"
"Its got me!!"
"Take it down!"
-

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
Custom commands (restated)
« Reply #1 on: September 30, 2007, 12:04:22 am »
Already done. The patch is part of Lakitu7's qvm.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Custom commands (restated)
« Reply #2 on: September 30, 2007, 12:10:37 am »
Quote from: "Death On Ice"
Already done. The patch is part of Lakitu7's qvm.
it's in svn >.>
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

sSopris

  • Posts: 221
  • Turrets: +26/-11
Custom commands (restated)
« Reply #3 on: September 30, 2007, 12:51:19 am »
Is there a way to have slap and layout commands but still keep Lakitu7's game.qvm?

His game.qvm doesn't have either of those.
"Oh gosh....oh gosh! TEXTURE ERROOOOOOOR!!!"
"Shoot it! Shoot it!"
"Its got me!!"
"Take it down!"
-

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
Custom commands (restated)
« Reply #4 on: September 30, 2007, 01:25:32 am »
Oooh, my bad. I must have not taken his pre-compiled qvm. I probably compiled SVN and used his patch >.>

sSopris

  • Posts: 221
  • Turrets: +26/-11
Custom commands (restated)
« Reply #5 on: September 30, 2007, 06:39:56 pm »
Ok let me restate or repeat the question.

In a .tcmd file, can I type something in that will be a variable for whatever the player inputs or whichever player uses the command.

Example of a variable for player input in .tcmd file:

map <whatever map player types>

Input when using this command should look like:

!map karith2 or !map pulse_102
---------------
Example of a variable for player's name in .tcmd file:

m <name of player who uses the command>

Input when using this command should look like:

UnnamedPlayer: !description
(and then the server would message that player whatever someone wanted it to message)

Thank you, I appreciate your help so far
"Oh gosh....oh gosh! TEXTURE ERROOOOOOOR!!!"
"Shoot it! Shoot it!"
"Its got me!!"
"Take it down!"
-

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Custom commands (restated)
« Reply #6 on: September 30, 2007, 10:03:40 pm »
to do that you need a custom game.qvm, since g_admin [command] blocks can't take arguments. !map has already been implemented since around the same time as the rest of g_admin.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Custom commands (restated)
« Reply #7 on: September 30, 2007, 11:07:42 pm »
Quote from: "kevlarman"
to do that you need a custom game.qvm, since g_admin [command] blocks can't take arguments. !map has already been implemented since around the same time as the rest of g_admin.

!map has actually only been around since tjw made his own layout system
(revision 886)
although of course there's always been /callvote map niveus; !passvote
benmachine

Amanieu

  • Posts: 647
  • Turrets: +135/-83
    • Amanieu
Custom commands (restated)
« Reply #8 on: October 08, 2007, 04:29:45 am »
I created a patch which allows arguments to be passed to admin.dat commands:http://
http://www.mercenariesguild.net/patches/?do=details&task_id=100
Quote
< kevlarman> zakk is getting his patches from shady frenchmen on irc
< kevlarman> this can't be a good sign :P

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Custom commands (restated)
« Reply #9 on: October 08, 2007, 04:30:13 pm »
Quote from: "Amanieu"
I created a patch which allows arguments to be passed to admin.dat commands: http://www.mercenariesguild.net/patches/?do=details&task_id=100

I'm in ur post, fixin ur URIs
benmachine

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
Custom commands (restated)
« Reply #10 on: October 09, 2007, 12:08:33 am »
Quote from: "benmachine"
Quote from: "Amanieu"
I created a patch which allows arguments to be passed to admin.dat commands: http://www.mercenariesguild.net/patches/?do=details&task_id=100

I'm in ur post, fixin ur URIs


I'm in ur post, fixin ur spellings

URL, not I

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Custom commands (restated)
« Reply #11 on: October 09, 2007, 12:52:57 am »
Quote from: "Death On Ice"
I'm in ur post, fixin ur spellings

URL, not I
FYI, a URL is a type of URI. And then there are URNs... this is what you get when you let TBL participate on RFCs. (See "Relationship to URL and URN" on the URI article.)

30000 ninja edits!!!
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
Custom commands (restated)
« Reply #12 on: October 09, 2007, 01:29:24 am »
Sorry, Just doing it for the continuation of the series.

You should have said it too, next_ghost

I'm in ur post, fixin ur errors

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Custom commands (restated)
« Reply #13 on: October 09, 2007, 07:09:35 pm »
Quote from: "Death On Ice"
You should have said it too, Undeference


I'm in ur post, fixin ur errors
benmachine

mooseberry

  • Community Moderators
  • *
  • Posts: 4005
  • Turrets: +666/-325
Custom commands (restated)
« Reply #14 on: October 10, 2007, 12:41:22 am »
Quote from: "benmachine"
Quote from: "Death On Ice"
You should have said it too, Undeference


I'm in ur post, fixin ur errors


Bucket: [You hear the distant howl of a coyote losing at Counterstrike.]

मैं हिन्दी का समर्थन

~Mooseberry.