observer functions

Post Reply
User avatar
DaJ4ck3L
Crow{OZ}
Posts: 3375
Joined: Thu Jul 22, 2010 11:51 pm
Contact:

observer functions

Post by DaJ4ck3L »

hey perr, is there a way that a player could spawn let's say an elf laser from an observer fly mode camera?

http://www.twitch.tv/phr33ky/b/625391730?t=1h09m39s

the idea i have is that if the observer presses the bind to shoot the elf laser, and whatever target it hits, the observer camera orbits that target. because the observer doesn't have an actual body though, i'm not sure how such a thing would be possible.

ohhh, and off topic, here a cool play from the crow.

http://www.twitch.tv/phr33ky/b/625391730?t=1h15m09s
Image
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: observer functions

Post by perrinoia »

Unfortunately, GameBase::getLOSInfo doesn't work from observer camera, and I doubt getMuzzleTransform works too, so you can't tell which direction they are looking. However, you can get the position of the observer camera, and spawn an elf turret, or a drone (vehicle) with a cloud (explosion) shapefile that shoots lightning bolts (I'd recommend soul grabber instead of elf)... LOL

This is a really bad idea... So I'm going to code it... But my cloud is gonna have rain... :trolol:

Actually, I'm gonna change it up a bit... Instead of an observer client controlled vehicle or turret, I'm just going to mount a weapon in a spare item slot... The weapon will have a cloud shapefile, and it will auto trigger when mounted... When triggered, it'll rain on the mounted player... No lightning, though... Just lots and lots of rain drops...

Image
Image
Post Reply