Turret - player relations

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Turret - player relations

Post by Rookie One.pl »

Hi,

I'm just wondering, is it possible to make the turret weapon rotate around the player instead of the player turning around them?

Rookie One
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

I think u could try to set the mg's origin to where the player is. But then, how could this be done? New model?
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 »

local.blah = spawn mgwherever.tik
local.blah glue player
?
am i being stupid again?
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Well, Fungus, probably yes. :) Even if that worked, which I doubt, the animations wouldn't match.

What I'm trying to do is to spawn an usable MG42 at the top of a tank turret and I want it to be 360-degrees-usable, preserving some realism. ;)
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
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 then 360 degrees isnt realistic because the gun cant be mounted inside the hatch... therwed have to be a lazy susan that the mg was mounted on forthe mg to be 360 degrees the tank turret would have to spin...
couldnt you look at the breakthru example?
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Have you played Enemy Territory? The MG's... hmm... singlepod (is that a word? :?) is bound to the hatch, and it spins around 360 degrees, while the player sits still at the same origin, just the angles change. That's the effect I want to get.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
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 »

i still cant see wht you mean as the MOH series is all ive boufght into in the lat year :P
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Well, download Enemy Territory then - it's free! :)

Anyone?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
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 »

YAY! where? enemyterritorygame.com (like all the other new game webbys :P )
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

You can get it here. Welcome to Enemy Territory, soldier... :P

Can anyone answer my question? ;)
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

tried ET a long time ago, thought it sucked pretty bad. but thats imo.

why not do something like this...

Code: Select all

while(1)
{
$mg42.angles = $player.angles
$player.angles = ( 0 0 0 )
waitframe
}
it'd be pretty glitchy and it's a hack for sure but it's all i can think of.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

I'm pretty sure this wouldn't work as changing a turret weapon's angles while it's being used does absolutely nothing and takes effect after the player drops it.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

well how do they do it? do they glue turret and player. do they echo angles? hwo do they do it? obviously the turret turns wit hthe palyer.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
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 »

this is exactly like (wacko, mj,)'s problem with the spinning platform....

i just played the game (and i played an obj version and won all by my self.. seriosly, i just spent 30 minutes on a server alone, and i win :P)
and i think the guy was sorta just CARRYING the mg42, not having it attatched to a turret :P i you can find a way for the player to posess an MG42 is the only way youre gonna get it done easily (or, thats what i think)
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

It took you 30 minutes to win an objective on an empty server??? :shock: I take about 5 mins to do that, depending on the map... :P

Well, Fungus, watch the intro and take a look at the player who mans the tank's MG. The MG rotates around him. That's exactly the effect I want to get.

@Lizard - it's another game engine, I don't know... :? I'll take a look at the game source and see if I can find anything...
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Post Reply