piterx Posted February 10, 2005 Share Posted February 10, 2005 would be nice if (by selecting it in the admin options) in the next version of mta there will be th possibility to chat only if u're near to another player....i mean....instead of the chat box would be funny if when someone speaks appears a bubble like in the comics...if it was so i could make a plan of attack and my enemies couldn't "hear" it Link to comment
Mike Posted February 10, 2005 Share Posted February 10, 2005 This could be done on this version with a (cpu intensive) mtama script. I'll have a go at making it Link to comment
Guest Posted February 10, 2005 Share Posted February 10, 2005 in a script? you sure mike? Link to comment
Slothman Posted February 10, 2005 Share Posted February 10, 2005 well, with mtama you could make a command to only speak to those nearby but it wouldnt look like a speach bubble, it wouyld look like this : Link to comment
Mike Posted February 10, 2005 Share Posted February 10, 2005 I've already made it and it works well, just need to check something before I give it out Link to comment
Guest Posted February 10, 2005 Share Posted February 10, 2005 but you'd have to type / right? it can't just change the text in the chatbox can it? Link to comment
Mike Posted February 10, 2005 Share Posted February 10, 2005 yeah, at the moment it's /msg whisper and it PMs the message to everyone within 50 metres. Link to comment
piterx Posted February 10, 2005 Author Share Posted February 10, 2005 anyway.....coooooooooool!!!! maybe the developers of mta will make it possible in the next version....it would be very very funny... anyway....post your script when you've finished it... Link to comment
Slothman Posted February 10, 2005 Share Posted February 10, 2005 or you could pass it to Oli and let him add it to his borg collective of scripts, AKA GRS Link to comment
Jani Posted February 10, 2005 Share Posted February 10, 2005 lol omg nice 1 mike, btw olis script rox0rs Link to comment
Mike Posted February 10, 2005 Share Posted February 10, 2005 alias whisper.distance { var %x,%y,%z %x = $abs($calc($1 - $2)) %y = $abs($calc($3 - $4)) %z = $abs($calc($5 - $6)) !return $round($sqrt($calc(%x * %x + %y * %y + %z * %z)),2) } on *:SIGNAL:mta.pm:{ if ($3 == whisper) { var %a = 0 unset %b while %a < $mta.maxplayers($1) { if (($whisper.distance($mta.location($1,$2,x),$mta.location($1,%a,x),$mta.location($1,$2,y),$mta.location($1,%a,y),$mta.location($1,$2,z),$mta.location($1,%a,z)) <= %whisper) && (%a != $2) && ($mta.name($1,%a) != Unknown)) { mta.msg $1 %a Whisper from $mta.name($1,$2) $+ : $4- %b = $iif($chr(44) !isin %b,$mta.name($1,%a),%b $+ $chr(44) $chr(32) $mta.name($1,%a)) } !inc %a } mta.msg $1 $2 Message delivered to $iif(%b,%b,no-one) unset %a unset %b } } There ya go P.S: Thanks to Oli for the distance calculations Link to comment
orappa Posted February 11, 2005 Share Posted February 11, 2005 I think I recall eAi saying that speech bubbles would be possible with Blue (although you'd have to code them yourself). Link to comment
Slothman Posted February 11, 2005 Share Posted February 11, 2005 yup, they said in blue that the diretx features are moddable, so this may be feasable (however kinda impractical) Link to comment
XcR Posted February 11, 2005 Share Posted February 11, 2005 C++ is the language used for most big programs, right? well if that is true then i dont see what isnt possible with blue Link to comment
Hawk_Boy Posted February 12, 2005 Share Posted February 12, 2005 you slothman how did u get moderator rights? Link to comment
Slothman Posted February 12, 2005 Share Posted February 12, 2005 through honesty, reliability, and a long standing dedication to the MTA community. or maybe my name was drawn out of a hat, I dunno. Link to comment
njr1489 Posted February 12, 2005 Share Posted February 12, 2005 I don't know if this was mentioned before but maybe there can be a separate chatbox for pming people because sometimes people usually talk a lot on the chatbox so you miss what other people say. It should have a toggle option from chatbox to pm chatbox. Link to comment
Slothman Posted February 12, 2005 Share Posted February 12, 2005 other games have done fine with the "/msg" if anything, the current pm system should be tweaked to allow wildcards, id numbers, and partial names. Link to comment
darkdreamingdan Posted February 13, 2005 Share Posted February 13, 2005 if u only want to talk to ur team, why dont u use clantag PM. of course, u'll have to have a tag. its included in GRS and u type: /msg clan eg. /msg clan vcp hi Link to comment
Mike Posted February 14, 2005 Share Posted February 14, 2005 And /msg clan can also be used for wildcard names. E.g: /msg clan tali Yo Talidan Edit: I also have another script specially for quick messages on *:SIGNAL:mta.pm:{ if ($3 == quick) { mta.msg $1 $2 PM sent to $mta.name($1,$mta.getid($1,$4)) mta.msg $1 $mta.getid($1,$4) PM from $mta.name($1,$2) $+ : $5- } } /msg quick Link to comment
[KFC]-ScharK Posted February 14, 2005 Share Posted February 14, 2005 And /msg clan can also be used for wildcard names. E.g: /msg clan tali Yo Talidan Edit: I also have another script specially for quick messages on *:SIGNAL:mta.pm:{ if ($3 == quick) { mta.msg $1 $2 PM sent to $mta.name($1,$mta.getid($1,$4)) mta.msg $1 $mta.getid($1,$4) PM from $mta.name($1,$2) $+ : $5- } } /msg quick Typing quick is just adding more to it! Let's say their name was Bob, all you would have to do is /msg bob! Link to comment
Mike Posted February 14, 2005 Share Posted February 14, 2005 But the majority of people that you send a message to have tags and other stuff by their name which isn't always easy to type quickly. Link to comment
Recommended Posts