Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release Waypoint
#1
Code:
//self = the player entity who will see the waypoint
//nem = the player entity who will have the waypoint above his head
setWaypoint(nem)
{
    nem endon("disconnect");

    self.NemWay = NewClientHudElem(self);
    self.NemWay.x = nem.origin[0];
    self.NemWay.y = nem.origin[1];
    self.NemWay.z = nem.origin[2];
    self.NemWay setShader("waypoint_kill");
    self.NemWay setWaypoint(true,"waypoint_kill");
    self.NemWay setTargetEnt(Nem);
}

The position will update automatically, no need to put it in a loop. Delete with self.NemWay destroy(); (it will also disappear when the player dies and come back when the player respawns
[Image: MaEIQ.png]
Reply

#2
That's awesome.
Is it possible to make it appear when someone dies and make it stay for a second, and then fade out?
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#3
I think:
Code:
self.NemWay fadeovertime(time);
or
self.NemWay.alpha(alpha);
Reply

#4
I know how to, but is it possible with these kinds of elements? (at school, so can't test)
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#5
there is already a waypoint code by metPl or not?
[Image: ctoc.jpg]
Reply

#6
(09-08-2011, 13:22)Tomsen1410 Wrote: there is already a waypoint code by metPl or not?

dunno? What does it matter?
[Image: MaEIQ.png]
Reply

#7
@AZUMIKKEL In _globallogic_player.gsc, replace the 2 lines which look like this:
Code:
thread maps\mp\gametypes\_deathicons::addDeathicon( body, self, self.team, 5.0 );

With this instead:
Code:
thread maps\mp\gametypes\_deathicons::addDeathicon( body, self, self.team, 1.0 );

Wink

If you look at the addDeathicon function, it calls a timeout function which fades the icon out. So yes, it's possible with shaders.
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] Waypoint plugin for users 8q4s8 3 4,407 07-22-2013, 15:14
Last Post: E-losev
  Preview Waypoint on radar 8q4s8 4 3,941 05-16-2013, 13:18
Last Post: 8q4s8
  Help Make Waypoint FaiR_PLaY 10 5,853 02-12-2013, 13:09
Last Post: archit
  [Release] Custom (shevron) waypoint emblems R4ST4M4N 6 6,388 02-29-2012, 18:55
Last Post: d3kker
  [Request] Waypoint while able to see it sort off iAegle 3 2,369 03-12-2011, 23:41
Last Post: iAegle

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.