Author Topic: benmachine's assorted (generally minor) mods  (Read 6487 times)

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
benmachine's assorted (generally minor) mods
« on: February 03, 2007, 01:28:34 am »
Machinegun Turret Dominos

Based on svn 848 with risujin/avenger patches, I modified tremulous.h to provide:
Human building detonation time: down to 0.5sec
Mgturret splash range: very short
Damage: colossal
Pretty much all the map is powered by a reactor.
Line them up and start the chain with any human weapon (all at 100x damage). Need to jump a a gap? Use a tesla. Both cost 0 bp and build in 1 second.
The game.qvm:
http://www.bandstand.org.uk/~benm/trem/dominos/game.qvm
and the diff against svn848:
http://www.bandstand.org.uk/~benm/trem/dominos/dominos-svn848.patch
and a few demos of the thing in action:
http://www.bandstand.org.uk/~benm/trem/dominos/demo0001.dm_69
http://www.bandstand.org.uk/~benm/trem/dominos/demo0004.dm_69
http://www.bandstand.org.uk/~benm/trem/dominos/fuse.dm_69

UPDATED: Alien team is locked by default (in a pretty hacky way), I made /callvote sudden_death end it when it has already started, removed the need for an armoury, g_benmachine is no longer in existence.

IRC-like /me command

Again based on tremulous 848 (don't really know why) but this time unmodified, the following patch allows:
/me does an action
***benmachine does an action
/tme tells the team about his actions
***benmachine tells the team about his actions

/me also works in chat and teamchat, the latter doing a /tme

patch against svn 848, version 2:
http://www.bandstand.org.uk/~benm/trem/action/action848.patch
qvm, based on Risujin's code, version 2:
http://www.bandstand.org.uk/~benm/trem/action/game.qvm
svn diff of the above, because it's not quite the same:
http://www.bandstand.org.uk/~benm/trem/action/action-ra848-2.patch

If anyone has any better ideas about which svn to base on, or improvements to my coding (it's probably pretty ugly in some places) please say.
With version 2 (patch form only atm), the format can partially be customised with g_actionPrefix, a string with default value *** that is prepended to every action message, and coloured green and blue (unless you force it to one colour with ^1 for example) for all and team chat respectively.
benmachine

AKAnotu

  • Posts: 616
  • Turrets: +7/-9
benmachine's assorted (generally minor) mods
« Reply #1 on: February 03, 2007, 02:12:47 am »
god, i love your mods
HUMIE WALLWALK

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
benmachine's assorted (generally minor) mods
« Reply #2 on: February 21, 2007, 12:02:29 am »
BUMP because I have MADE SOMETHING NEW and thought putting it here was better than making another thread. I have made a /me command! Useless, maybe. Fun, also maybe, and that's really why we're all here, right?
See the first post for details
(btw, the dominos mod is not integrated or related in any way)
benmachine

techhead

  • Posts: 1496
  • Turrets: +77/-73
    • My (Virtually) Infinite Source of Knowledge (and Trivia)
benmachine's assorted (generally minor) mods
« Reply #3 on: February 21, 2007, 02:05:08 am »
Cool, but integrate something so that it can't be spoofed as a death message.
I'm playing Tremulous on a Mac!
MGDev fan-club member
Techhead||TH
/"/""\"\
\"\""/"/
\\:.V.://
Copy and paste Granger into your signature!

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
benmachine's assorted (generally minor) mods
« Reply #4 on: February 21, 2007, 11:07:26 am »
Quote from: "techhead"
Cool, but integrate something so that it can't be spoofed as a death message.

It's preceded by three asterisks already. True, when someone whose name was preceded by three asterisks of the right colour died it would appear the same as someone without using /me was mauled... etc, but tricks like that are already possible with the current system (try saying ^7died, then append a colon to your name and use /kill, for example) and I can't think of a way to fix it without a simple workaround to abuse it in some other way. If you can, then by all means tell me and I will consider it, but the only means I can think of are either easily bypassable or pretty ugly.
benmachine

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
benmachine's assorted (generally minor) mods
« Reply #5 on: February 21, 2007, 07:12:41 pm »
I really like the me commands, but the *s are annoying. It would be better to use a broadcast: print: Paradox went to the zoo.

∧OMG ENTROPY∧

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
benmachine's assorted (generally minor) mods
« Reply #6 on: February 22, 2007, 01:09:17 am »
Rather than argue, I've just made a new cvar, g_actionPrefix, with a default value of ***^7 (dunno why the ^7 is there, but it does no harm), that is prepended to every action message. Hence patch version 2 is introduced, and I've edited the first post to reflect this change (although I accidentally overwrote version 1, so the numbering is really obsolete).
Just do g_actionPrefix "" to get the effect you are looking for.

The game.qvm and -ra.patch aren't yet updated, however, and aren't going to be tonight, because it's getting late.
edit: game.qvm and -ra patch now support g_actionPrefix.

Please, if anyone uses this feature, do tell me.
benmachine