Trying to make hitmark script for 1.3 / 1.4 by S_hift - TribalWar Forums
Click Here to find great hosting deals from Branzone.com


Go Back   TribalWar Forums > Current Gaming > Tribes Scripting and Modifying
Reload this Page Trying to make hitmark script for 1.3 / 1.4
Thread Tools
S_hift
VeteranX
Old
1 - 12-03-2014, 16:18
Reply With Quote
Code:
function Hitmark::OnSound(%Sound) {
   if (Match::String(%Sound, "~button4")){
      newEvent("Hitmark::OnSound" @ %Sound("Hitmark.bmp", 512, 384, 100, 0.8)
   }
}



Not sure were to go from here
Some help would be appreciate also I'm new to this whole scripting deal, but I'm willing to learn. Yes I know it probably looks retarded to the more experienced eyes.


also the goal for this is to make a script that works on 1.3 and 1.4 with very little editing. Preferably just changing hitmark.bmp to hitmark.png


I'll explain further what I'm trying to do. The server I play in is modified to play a sound everytime I hit someone, kind of like the mid air in the LT server. I'm trying to detect that sound (button4.wav) and have tribes draw the desired image onto the center of my screen.
 
S_hift is offline
 
Last edited by S_hift; 12-03-2014 at 16:20..
Sponsored Links
S_hift
VeteranX
Old
2 - 12-03-2014, 17:14
Reply With Quote
update. Credit to perrinoia

Code:
function onClientMessage(%client, %msg)
{
   if(%client)
      $lastClientMessage = %client;

   // filter messages here
      if(%msg == "~wButton3.wav")
         echo("Blink crosshair or whatever.");
   return true;
}
this is basically just the first half of the script. instead of "echo" would write something like Draw("hitmark.bmp, 800, 600, idk, 0.8"); return true" }
 
S_hift is offline
 
Last edited by S_hift; 12-03-2014 at 17:21.. Reason: question


Go Back   TribalWar Forums > Current Gaming > Tribes Scripting and Modifying
Reload this Page Trying to make hitmark script for 1.3 / 1.4

Social Website Bullshit


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


AGENT: claudebot / Y
All times are GMT -4. The time now is 19:47.