• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help if end bullettrace is bigger/passed the map
#1
hello, I am asking
is there thing to write:if end of bullettrace passed the map? like:
Code:
if(endbullettrace > (level.mapSize/5.625))


and either can I write if end of bullettrace passed specific Z/height axis? like:
Code:
if(endbullettrace > (0, 0, -1000))


help me plz!![/font]
  Reply
#2
dunno but i think u need to add .origin
[Image: ctoc.jpg]
  Reply
#3
Not sure but it might return the skybox as trace[ "entity" ] so .. if it does .. then just use if( trace[ "entity" ] == "skybox name blablabla" )
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

  Reply
#4
I think I found
Code:
bullettracepassed


but could I write
Code:
if(bullettracepassed(self.origin, (level.mapSize/5.625),  true, undefined))


does (level.mapSize/5.625) returns vector scale are angles?

if not then what I write for mapsize origin?
  Reply
#5
I am not very sure if this works:

if(Trace["position"].origin[2] > -1000)

Anyway, I think that skyboxes are entities, because when you shot magicbullets to them, magicbullets explode, Cool
[Image: veovuq.png]
  Reply
#6
Skyboxes aren't entities
[Image: MaEIQ.png]
[-] The following 1 user says Thank You to Pozzuh for this post:
  • Yamato
  Reply
#7
(09-06-2011, 13:46)Pozzuh Wrote: Skyboxes aren't entities

Ohh, good to know, and also, if you find a OMA, you have to call it as Trace["GOD"]
[Image: veovuq.png]
  Reply
#8
Code:
            for(;;)
            {
                self waittill ( "weapon_fired" );
                location = aim(); // aim = the end location
                if(distance(self.origin, location) < 10000)
                    self SetOrigin( location );    
            }
YouTube 1: Azumikkel - Modding
YouTube 2: DerpShark - Gaming Entertainment
Website: Jensby.me
Contact: im[at]jensby.me
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  ping warn 1.1, I passed from the server kpoviv 1 1,164 12-13-2012, 09:47
Last Post: XxBRxX
  [Tutorial] Bullettrace Yamato 8 3,579 01-17-2012, 16:52
Last Post: aname
  D0h! passed away SuperNovaAO 7 1,595 04-01-2011, 07:53
Last Post: aosma8
Bug 4fun passed me in posts Bloopbloop 10 2,594 02-27-2011, 09:31
Last Post: Ivankec

Forum Jump:


Users browsing this thread: 1 Guest(s)