beam from point A to Point B?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

beam from point A to Point B?

Post by HDL_CinC_Dragon »

how do I make it so that I have a beam kinda thing span from point A to point B and to pivot on point A as point B moves


Key:
------ = beam horizontal
| = beam vertical
A = point A
B = point B



Postion 1 before movement:
A-------B


Position 2 after movement is complete:
A
|
|
|
B

or maybe so that the beam shrinks as point B moves closer to Point A

1:
A-------------B

2:
A---------B

3:
A------B

4:
A--B

know what I mean?
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Short answer:

In g_allclasses.html ( included in the Radiant install I believe ) you will find this about the func_beam entity:

Code: Select all

updateendpoint

      Update the endpoint of a beam

updateorigin

      Update the origin of a beam
Admin .MAP Forums
Image
Head above heels.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

i have the func_beam code in my entdefs if you want it.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

If you are makeing a custom map all you need to do is have a func_beam target a script_origin and the end of the beam will always be at the script_origin BUT it will only work if you do it in radiant . I have found that for spawing func_beams that you have to make a while loop

while(1)
{
$mybeam endpoint ( xx xx xx )
waitframe
}

or

while(1)
{
$mybeam endpoint $my_script_origin.origin
waitframe
}

I made a clock in radiant a func_beam in the middle and also a script_origin I made a second script_origin on the outside of the clock and had the func_beam target it and I used bind to bind the outside script_origin to the inside one . I then rotated the middle script_origin so that the outside one went around in a circle . Because the fund_beam was targeting the outside script_origin the beam rotated around following the outside script_origin . I had a beam clock . I of course did this for each of the hands of the clock .
Image
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

lizardkid wrote:i have the func_beam code in my entdefs if you want it.
can i get it?
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post by HDL_CinC_Dragon »

I thought I had func_beam and I was about to get it and then I saw that isnt wasnt in the Func window. I was like uhhh am i forgetting something? how could it not be there?
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Here is the exelent files posted by tltrude: Here it is: http://pages.sbcglobal.net/tltrude/Temp/code.zip

Expand them into main ( so the cpp files end up in main/code ) and start up Radiant... you will have a lot of new toys ( like beam under the func folder :) )
Admin .MAP Forums
Image
Head above heels.
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post by HDL_CinC_Dragon »

TOYS?!!?! I LOVE TOYS! GIMMIE! lol thnx

EDIT:
Just a few toys? HOLY CRAP! im gunna have some mad fun :twisted:
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Made this baby in a jiffy:
Image
It sparkles like mad an really looks like a perfect target for a teleport destination :D

Here is the settings I used:
Image

Happy happy, joy joy! :D
Admin .MAP Forums
Image
Head above heels.
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post by HDL_CinC_Dragon »

OMG OMG OMG OMG I WANNA PLAY WITH IT! man I love mapping. id prolly kill myself without it lol.
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

what i want to know is why did MOHAA devs not put all the Q3 toys into MOH? are they %&( inSANE?

*drools with anticipation at the thought of what his map will look like with his new toybox*
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post by HDL_CinC_Dragon »

:twisted: Mwahahahahahahahaha me like toys =)


lol anyway, yeah I think they ARE crazy! I mean, w/o the proper toys how can our maps be that great?! well.... they already can be but with these newer toys its even more fun :D :D
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

a lot more things to play with means... dada DA

A NEW FUN MAP!

must..make...must...amke... ougahhahahahaaa (say it out loud, it'll make more sense)
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post by HDL_CinC_Dragon »

lol
Image
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

well it looks like you can see the func beams THRU the brushes... not cool
and hwere the heck is func beam in SP?
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Post Reply