Home   Help Search Login Register  

Author Topic: Enemy Death Camera(Switch On/Off) In Action Menu?  (Read 10038 times)

0 Members and 1 Guest are viewing this topic.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Death Camera On The Enemy(Switch On/Off)?
« Reply #60 on: 04 Jun 2005, 14:31:24 »
You did restart the game after changing the addon config didn't you?

I'm sure you did, but........just checking.  ;D


Planck
I know a little about a lot, and a lot about a little.

Maximus-Sniper

  • Guest
Re:Death Camera On The Enemy(Switch On/Off)?
« Reply #61 on: 04 Jun 2005, 14:56:07 »
Hi :)

@Lean Bear

It's work now, i did a change in the CLass UserActions, here:

Code: [Select]
class UserActions
      {
      class DeathCamOn
        {
         displayName="Death Cam On";
         position="";
         radius=99999;
         condition="(Format [{%1},slow_mo_deathcam] != {true}) && (player == this) && cam_enabled";
         statement="slow_mo_deathcam=true; this exec {\RAST\Script\Death_Cam\deathcam.sqs}";
      };

Had to change the condition to "true" hehe  ;D

Now it's works

Thanks Lean Bear :)

And now the init.sqs problem, hehe
I'm not realy sure how i can fix that to be included in the addon  ??? ???


@Planck

hehe  ;D ;D Yes i allways restart after some change in some files LOL

Maximus-Sniper
« Last Edit: 04 Jun 2005, 14:56:42 by Maximus-Sniper »

Offline 456820

  • Contributing Member
  • **
Re:Death Camera On The Enemy(Switch On/Off)?
« Reply #62 on: 04 Jun 2005, 15:26:13 »
by any chance can you create a trigger but via a marker in a script included in the addon then just set the diameter to the whole map and put
eastsipe = this list
then that should make all east units eastsnipe so the deathcam would work on all east units i know its possible to create triggers via scripts because someone said they solved something with it but im not sure how hope that helps though

Lean Bear

  • Guest
Re:Death Camera On The Enemy(Switch On/Off)?
« Reply #63 on: 04 Jun 2005, 15:30:26 »
Yeah, that would be helpful. Cause that way all the units on the map would be included (including the player :) - I suppose it could be interesting to see yourself die in slo-mo as well :) )

If creating a trigger in a script doesn't work, the we could always do something in the class UserActions.

Because you can effectively create a trigger in the userActions, but you wouldn't have to make it do anything. In fact, you could add it on in the current userActions.

edit

Like this:

Code: [Select]
class UserActions
{
  class DeathCamOn
  {
      displayName="Death Cam On";
      position="";
      radius=99999;
      condition="(Format [{%1},slow_mo_deathcam] != {true}) && (player == this) && cam_enabled";
      statement="eastsnipe=this list; slow_mo_deathcam=true; this exec {\RAST\Script\Death_Cam\deathcam.sqs}";
  };
     
  class DeathCamOff
  {
      displayName="Death Cam Off";
      position="";
      radius=99999;
      condition="(Format [{%1},slow_mo_deathcam] != {false}) && (player == this) && !cam_enabled";
      statement="slow_mo_deathcam=false";
  };
};
« Last Edit: 04 Jun 2005, 15:35:12 by Lean Bear »

Maximus-Sniper

  • Guest
Re:Enemy Death Camera(Switch On/Off) In Action Menu?
« Reply #64 on: 04 Jun 2005, 16:35:51 »
Hi :)

@Lean Bear and  456820

Well, if we use the eastsnipe=this list, that's mean we still have to use the init.sqs in evey mission?? Or it's that possible to make a another script that tells us what side is enemy etc.

"eastsnipe" are ok,but why "this list"? Which "list"?? hehe

Maximus-Sniper

Offline 456820

  • Contributing Member
  • **
Re:Enemy Death Camera(Switch On/Off) In Action Menu?
« Reply #65 on: 04 Jun 2005, 16:38:10 »
well it was originally in a trigger so this list basically telling everyon inside the trigger area

Maximus-Sniper

  • Guest
Re:Enemy Death Camera(Switch On/Off) In Action Menu?
« Reply #66 on: 04 Jun 2005, 16:47:29 »
Hi :)

Ok, but that did't work :( I added the   eastsnipe=this list like this in the Class UserActions:

Code: [Select]
class UserActions
      {
      class DeathCamOn
        {
         displayName="Death Cam On";
         position="";
         

         condition="(Format [{%1},slow_mo_deathcam] != {true}) && (player == this) && cam_enabled";
         statement="eastsnipe=this list; slow_mo_deathcam=true; this exec {\RAST\Script\Death_Cam\deathcam.sqs}";
      };

And removed the init.sqs from the mission folder. May i make a trigger??
But in the Class UserActions we have this:

radius=99999;

that's mean the same if you make a trigger with radius of 99999 ??

:)

Lean Bear

  • Guest
Re:Enemy Death Camera(Switch On/Off) In Action Menu?
« Reply #67 on: 04 Jun 2005, 16:48:02 »
list is just a command used in scripting. No different to something like exec etc.

It lists all the units who would be affected by that trigger (all the units ion the map in this case).

edit

Yes, it is the same as a trigger of axis a and b = 99999 ;)

Except this one is bound to the player //or something :P
« Last Edit: 04 Jun 2005, 16:49:51 by Lean Bear »

Offline 456820

  • Contributing Member
  • **
Re:Enemy Death Camera(Switch On/Off) In Action Menu?
« Reply #68 on: 04 Jun 2005, 16:50:17 »
well make sure its east present and condition this
then activation
eastsnipe = this list
im not sure if you can do that in those files but have a go

Maximus-Sniper

  • Guest
Re:Enemy Death Camera(Switch On/Off) In Action Menu?
« Reply #69 on: 04 Jun 2005, 17:19:08 »
Hi mates :)

Ok.. i still got this error after adding  eastsnipe=this list

Code: [Select]
'eastsnipe=this |#|list; slow_mo_deathcam=true; this exec {\RAST\Script\Death_Cam\deathcam.sqs}': Error Uknown operator list

I remember we did this befor? :) So we had to remove the "eastsnipe=this list"

I'm not sure, hehe :)

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Enemy Death Camera(Switch On/Off) In Action Menu?
« Reply #70 on: 04 Jun 2005, 17:47:31 »
Maybe its just me, but is it not thislist

Or try........... eastsnipe in thislist

EDIT:  Forget that.....I thought it was for the condition.  ::)


Planck ::)
« Last Edit: 04 Jun 2005, 17:51:04 by Planck »
I know a little about a lot, and a lot about a little.

Maximus-Sniper

  • Guest
Re:Enemy Death Camera(Switch On/Off) In Action Menu?
« Reply #71 on: 04 Jun 2005, 20:56:58 »
Hi :)

@456820

Quote
just alittle thing the deathcam i think is to slow cahnge the speed to 0.35 and add a 1 second white in at the begining and black out at the end that way it will be great

Ok. i'm gonna change some more in the rast_deathcam.sqs :)

Change done:

Code: [Select]
SetAccTime 0.35
_unit = _this select 0
_camPos = GetPos _unit
_cx = _camPos Select 0
_cy = _camPos Select 1
_cz = _camPos Select 2
_cam1 = "camera" CamCreate [_cx+2, _cy+1, _cz+2]
_cam1 CamSetTarget _unit
_cam1 CamSetFov 0.3
_cam1 CameraEffect ["Internal","Back"]
_cam1 CamCommit 2
@CamCommitted _cam1
SetAccTime 1.0

_cam1 CameraEffect ["Terminate","Back"]
CamDestroy _cam1

exit

I'm nor sure where i can add 1 sec at the beginning and Black Out ??, hehe

I like to try to make the camera go around the man to, but not realy sure where i do that.. hehe  :P

Offline 456820

  • Contributing Member
  • **
Re:Enemy Death Camera(Switch On/Off) In Action Menu?
« Reply #72 on: 04 Jun 2005, 21:17:45 »
change it to this

Code: [Select]
titlecut [" ", "White in", 1]
_unit = _this select 0
_camPos = GetPos _unit
_cx = _camPos Select 0
_cy = _camPos Select 1
_cz = _camPos Select 2
SetAccTime 0.35
_cam1 = "camera" CamCreate [_cx+2, _cy+1, _cz+2]
_cam1 CamSetTarget _unit
_cam1 CamSetFov 0.3
_cam1 CameraEffect ["Internal","Front"]
_cam1 CamCommit 2
@CamCommitted _cam1
SetAccTime 1.0

_cam1 CameraEffect ["Terminate","Back"]
CamDestroy _cam1

exit

thats just the same but ive added the white in no black out becuase its at the end and it might dirupt the game eg all you can see is black screen. Ive also made it target the dead guy from the front because i think it looks better that way but if you disagree you can change it back
cya

Maximus-Sniper

  • Guest
Re:Enemy Death Camera(Switch On/Off) In Action Menu?
« Reply #73 on: 04 Jun 2005, 22:07:07 »
Hi 456820 :)

Thanks  ;D That's was better  :P :P

I'm gonna see if it's possible to add some rotating to, hehe

Maximus-Sniper

Maximus-Sniper

  • Guest
Re:Enemy Death Camera(Switch On/Off) In Action Menu?
« Reply #74 on: 05 Jun 2005, 02:36:16 »
Hi again :)

Ok, now have I included the init.sqs into my deathcam.sqs :) So now we don't need to add init.sqs into any mission anymore, hehe  ;D

Just another and finale thing to do. I still need to name the unit to east1, east2 etc...

So it is possible to do something now to change that, so i don't need to add name all the time to get the "Enemy Death Cam" to work??

Maximus-Sniper