neonDragon.net
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Distance counter..

+5
Coffeecake
Xalus
Eazy
Sps
Fagnatic
9 posters

Go down

Distance counter.. Empty Distance counter..

Post by Fagnatic Fri Jul 30, 2010 8:12 am

Well , we often ahve this problem with spray contests and gun toss

the T and Ct throwed theyre deagle or sprayed , and it looks like a tie , so everyoen is like "Terrorist wins" because they don't want to "freekill"

so heres my question,

Could there be a distance checker who says who sprayed or throwed his deagle the best

cheers.
Fagnatic
Fagnatic

Male Number of posts : 2699
Age : 30
Birthday : 1994-02-25
Location : Belgium
Registration date : 2010-01-09

Back to top Go down

Distance counter.. Empty Re: Distance counter..

Post by Sps Fri Jul 30, 2010 9:46 am

No OrperteX u didnt join a week ago. And i dont see any problem when its tie most just say CT won because they just want the round to end
Sps
Sps

Male Number of posts : 500
Age : 790
Birthday : 1234-09-15
Registration date : 2010-05-03

Back to top Go down

Distance counter.. Empty Re: Distance counter..

Post by Eazy Fri Jul 30, 2010 10:05 am

It will help the game alot if it could take place.
Eazy
Eazy
nD* Jail Member
nD* Jail Member

Male Number of posts : 116
Age : 33
Birthday : 1991-09-24
Location : Denmark
Registration date : 2010-01-11

Back to top Go down

Distance counter.. Empty Re: Distance counter..

Post by Xalus Fri Jul 30, 2010 10:45 am

I wanted to use this for my server but, here U go..

Gun Toss
Its bugged if its with more players but, I think Mati can fix it ^^
Code:

#include <amxmodx>
#include <engine>

#pragma semicolon 1
#define VERSION "1.0"

new entid[33];

new Float: throworigin[3];
new Float: droporigin[3];
new bool: has_dropped[33];

public plugin_init() {
   register_plugin("Drop Distance", VERSION, "Xalus & Drekes");
   
   register_touch("weaponbox", "worldspawn", "Fwd_Weapon_Touch");
   register_clcmd("drop", "cmd_drop");
   register_logevent("Event_RoundStart", 2, "1=Round_Start");
}

public Event_RoundStart() {
   arrayset(has_dropped, false, 0);
   arrayset(entid, 0, 33);
}

public cmd_drop(id) {
   entid[id] = get_user_weapon(id);
   has_dropped[id] = true;
}

public client_PreThink(id)
   if((entity_get_int(id, EV_INT_flags) & FL_ONGROUND))
      if(!has_dropped[id])
         entity_get_vector(id, EV_VEC_origin, throworigin);

public Fwd_Weapon_Touch(weapon, world) {
   new players[32], pnum, id;
   get_players(players, pnum);
   
   for(new i = 0; i < pnum; i++) {
      id = players[i];
      
      if(!is_user_alive(id))
         continue;
      
      if(entid[id] == weapon)
         break;
   }   
   entity_get_vector(weapon, EV_VEC_origin, droporigin);
   has_dropped[id] = false;
   check_distance();
}

public check_distance() {
   new Float: distance = get_distance_f(throworigin, droporigin);
   client_print(0, print_chat, "Drop distance: %.1f", distance);
}

Spray Distance
Code:
#include <amxmodx>
#include <engine>

public plugin_init()
{
      /* SVC_TEMPENTITY (event #23) event, trigger if parameter 1 is equal to 112 (TE_PLAYERDECAL) */
      register_event("23", "player_spray", "a", "1=112")
}

public player_spray()
{
      new id = read_data(2) /* as seen in the include, player index is the second parameter */
      new iOrigin[3]

      iOrigin[0] = read_data(3) /* and of course, the coordinates... */
      iOrigin[1] = read_data(4)
      iOrigin[2] = read_data(5)

      /* you can get the rest of parameters too if you need them */

      /* now, what you needed... distance... */

      new iPlayerOrigin[3]

      get_user_origin(id, iPlayerOrigin)

      new iDistance = get_distance(iPlayerOrigin, iOrigin)

      client_print(id, print_chat, "Distance to your spray: %d", iDistance)
}
Xalus
Xalus

Number of posts : 204
Age : 29
Birthday : 1995-04-26
Registration date : 2009-11-27

Back to top Go down

Distance counter.. Empty Re: Distance counter..

Post by Coffeecake Sat Jul 31, 2010 10:23 am

thanks xalus,but cant u still use it on your server also?
Coffeecake
Coffeecake

Male Number of posts : 390
Age : 28
Birthday : 1996-09-18
Location : Dundee, Scotland
Job/hobbies : NeonDragon, football, music
Registration date : 2010-04-20

Back to top Go down

Distance counter.. Empty Re: Distance counter..

Post by Fagnatic Tue Aug 03, 2010 12:22 pm

BUMP


can someone take a look?
Fagnatic
Fagnatic

Male Number of posts : 2699
Age : 30
Birthday : 1994-02-25
Location : Belgium
Registration date : 2010-01-09

Back to top Go down

Distance counter.. Empty Re: Distance counter..

Post by Marksel Tue Aug 03, 2010 12:38 pm

The gun-toss distance counter doesn't work the way we want it to work:
It counts the distance from where you land to where the gun hits, instead of the distance between where you jump from and where your gun hits.

If this were to be implemented then you have to jump and strafe back to get higher distance, which is far from the way we play guntoss.
Marksel
Marksel
nD* Runner Member
nD* Runner Member

Male Number of posts : 3979
Age : 32
Birthday : 1992-02-01
Location : Holland
Job/hobbies : Owning you!
Registration date : 2009-08-19

Back to top Go down

Distance counter.. Empty Re: Distance counter..

Post by Mati Tue Aug 03, 2010 3:50 pm

At guntoss you see most of the times anyway clear the winner.

For spray it would be really handy, but the plugin is counting the distance from the player to the spray, and not from the ground.

Therefore, it's easy to get always the maximum because you just need to stand and move your crosshair very slow down while spamming the spray-key.
Mati
Mati
Admin
Admin

Number of posts : 876
Age : 33
Birthday : 1991-06-02
Location : Austria
Registration date : 2009-07-20

Back to top Go down

Distance counter.. Empty Re: Distance counter..

Post by swarley Tue Aug 03, 2010 5:21 pm

I'd say only do it with spray contest not with guntoss ^^ beacuse the T will rebel, so the odds of the terorrist rebelling is 0% if the terrorist get slain directly if he loses =s
swarley
swarley

Male Number of posts : 489
Age : 17
Birthday : 2007-07-06
Location : Arsenal, Emirates Stadium
Job/hobbies : Doing nothing
Registration date : 2010-05-28

Back to top Go down

Distance counter.. Empty Re: Distance counter..

Post by Army Of oNe Tue Aug 03, 2010 5:50 pm

well i dont its realy needfull.. i think we always do it right with choosing the winner, and if it is a tie, normally they will do a knife duel to settle it Wink

so i dont think there is a need for this.
Army Of oNe
Army Of oNe

Male Number of posts : 115
Age : 36
Birthday : 1988-02-19
Location : Netherlands, Arnhem.
Job/hobbies : Sales-manager, Computer-Poker-Dating.
Registration date : 2010-03-24

http://hyves.nl/under-influence9

Back to top Go down

Distance counter.. Empty Re: Distance counter..

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum