Author |
Message |
numgun
Joined: Sat Jan 13, 2007 11:04 pm Posts: 2932
|
Re: Portal Demo
Hmm I wonder if you can apply Lua on a gun through a scene. If that is possible, I smell a LordTim's portal gun in the mods section soon.
|
Tue Aug 26, 2008 10:46 pm |
|
|
CandleJack
Joined: Sun May 18, 2008 8:30 am Posts: 732
|
Re: Portal Demo
I wouldn't be surprised. With every new feature, someone finds a new work around.
|
Tue Aug 26, 2008 10:53 pm |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: Portal Demo
It's not possible to create anything Lua related without a console command or scene based scripting. Period. There's just no way to connect a script to a gun's behaviour.
Hell, we can't apply Lua to BUNKERMODULES, let alone HDFirearms.
Believe it or not sometimes there just plain ISN'T a workaround.
|
Wed Aug 27, 2008 1:06 am |
|
|
Zinc
Joined: Thu Jun 26, 2008 8:18 am Posts: 241
|
Re: Portal Demo
So now all of a sudden you CAN'T do EVERYTHING with Lua?
|
Wed Aug 27, 2008 1:35 am |
|
|
Tayrtahn
Joined: Mon Aug 25, 2008 1:03 am Posts: 10
|
Re: Portal Demo
Once we get scripted weapons, this should - in theory - be possible.
|
Wed Aug 27, 2008 1:37 am |
|
|
zalo
Joined: Sat Feb 03, 2007 7:11 pm Posts: 1496
|
Re: Portal Demo
Maybe you could do something that involves Taking the rotation of the actor's head, and when a console command is typed it spawns and applies a velocity to a Gibbing Lua TDEx.
|
Wed Aug 27, 2008 3:26 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: Portal Demo
CORRECTION you nitpicking ♥♥♥♥.
There's no way to make something happen somewhere with Lua besides areas and console commands IN THE CURRENT BUILD.
Jesus christ.
|
Wed Aug 27, 2008 4:10 am |
|
|
FarvanTorna
Joined: Sat Dec 02, 2006 11:51 pm Posts: 204
|
Re: Portal Demo
what about local trace?
|
Wed Aug 27, 2008 4:34 am |
|
|
robowurmz
Joined: Thu Aug 16, 2007 10:09 am Posts: 163
|
Re: Portal Demo
Well, if we made a scene with an area that covered the map, we might be able to check against the helditems of the units. If one equated to something like "SUPER LAZAH GUNNN" then we could have a bunch of TDExplosives and so on rain from the sky if he fired a special "SLGBeacon" object, perhaps? The Lua might be able to check to see if there are named MOSRotating's in the mapwide area. So the gun basically fires a useless blob on every map unless it's this one in the campaign, where it rains bombs if you do fire. Making it possible to have Scenario-Only weapons, like C4 detonators or something. So, with the recently found objects list, I'm sure we can find a way to find a way to make a portal gun, even if it can only be used on specialized portal scenes. viewtopic.php?f=73&t=12096
|
Wed Aug 27, 2008 7:48 am |
|
|
Tayrtahn
Joined: Mon Aug 25, 2008 1:03 am Posts: 10
|
Re: Portal Demo
Grif wrote: CORRECTION you nitpicking fudge.
There's no way to make something happen somewhere with Lua besides areas and console commands IN THE CURRENT BUILD.
Jesus christ. well, you could loop through all the actors in the scene, and check if their Pos is within given coordinates - makeshift areas, I suppose. But I'm not sure how you'd make the gun itself without scripted weapons. EDIT: Actually, it looks like there's an Area.AddBox method. Looks like areas can be added on the fly. Nifty.
|
Wed Aug 27, 2008 4:48 pm |
|
|
robowurmz
Joined: Thu Aug 16, 2007 10:09 am Posts: 163
|
Re: Portal Demo
Tayrtahn wrote: EDIT: Actually, it looks like there's an Area.AddBox method. Looks like areas can be added on the fly. Nifty.
Aha. Then we can trace the XY of the shot MOSRotating, and add an area on the fly in the scene. Then we can check against it and do the math! It's possible! Go Tim, you're the best man for this job!
|
Wed Aug 27, 2008 4:58 pm |
|
|
The Fat Sand Rat
Joined: Sun Apr 15, 2007 5:56 am Posts: 1191 Location: outside the shithole called the University in the Forest
|
Re: Portal Demo
Hey Lord Tim, Remake Endurantism with these in. Sincerely, Me.
|
Thu Aug 28, 2008 2:26 am |
|
|
Lord Tim
Joined: Fri Apr 27, 2007 4:55 pm Posts: 1178 Location: America!
|
Re: Portal Demo
Pssh. That is a dumb idea. Endurantism with portals? Pssh. No one would ever do that. Pssh. Keep your lame ideas to yourself. Psssh. Psssssssshhhhh.
Also, everyone stay away from Endurantism. It's for your own good.
|
Thu Aug 28, 2008 2:56 am |
|
|
Aspect
Joined: Mon Apr 28, 2008 1:35 am Posts: 383
|
Re: Portal Demo
*Claps hands
Do it tim! Do it!
|
Thu Aug 28, 2008 4:37 am |
|
|
Omni
Joined: Sat Jan 27, 2007 9:38 am Posts: 170 Location: St. Louis, MO
|
Re: Portal Demo
Grif wrote: CORRECTION you nitpicking fudge.
There's no way to make something happen somewhere with Lua besides areas and console commands IN THE CURRENT BUILD.
Jesus christ. And, you know, if then statements. They ain't efficient like function calls, but they work.
|
Fri Aug 29, 2008 4:43 am |
|
|
|