Search found 8 matches
- December 1st, 2012, 9:08 pm
- Forum: CoD2 Mapping Help
- Topic: Camera view after player death
- Replies: 14
- Views: 8250
Re: Camera view after player death
Finally it works, without dodamage, the invulnerability time was due to player_deathInvulnerableTime cvar. Thanks to all.
- November 30th, 2012, 12:52 pm
- Forum: CoD2 Mapping Help
- Topic: Camera view after player death
- Replies: 14
- Views: 8250
Re: Camera view after player death
I tried this: fastDeath2() { self waittill("death"); self setplayerangles((45,0,0)); } fastDeath() { for(;;) { self waittill("damage", damage, attacker, direction_vec, point, cause); self dodamage(self.health, (0,0,0)); } } and called the functions this way: level.player thread m...
- November 23rd, 2012, 9:13 pm
- Forum: CoD2 Mapping Help
- Topic: Camera view after player death
- Replies: 14
- Views: 8250
Re: Camera view after player death
Thank you but it still doesn't work. You're right, it should not be hard but it is, at least for me, and I would like to know if it's just me or what, because this is my first try to scripting and is quite frustrating. dodamage(<health>, <source position>) I did some testing and I got this: - dodama...
- November 22nd, 2012, 9:58 pm
- Forum: CoD2 Mapping Help
- Topic: Camera view after player death
- Replies: 14
- Views: 8250
Re: Camera view after player death
No, I couldn't set player angles anyway.
- November 20th, 2012, 10:38 pm
- Forum: CoD2 Mapping Help
- Topic: Camera view after player death
- Replies: 14
- Views: 8250
Re: Camera view after player death
Since I cant fix this with dodamage I'm trying to do this another way, now I set player health to 5. I should die when I get hit but it doesn't happen, if health is lower than damage, health becames 1 and after that there's a invulnerability time, so I disabled everything related to invulnerability ...
- November 14th, 2012, 5:16 pm
- Forum: CoD2 Mapping Help
- Topic: Camera view after player death
- Replies: 14
- Views: 8250
Re: Camera view after player death
I've tried to change view angles before player dies but it still doesn't work. I think dodamage always force view angles so also tried to change angles after dying but nothing happens. Do you have a script that does this or something like this? Now the code is this: fastDeath() { for(;;) { self wait...
- November 14th, 2012, 12:39 am
- Forum: CoD2 Mapping Help
- Topic: Camera view after player death
- Replies: 14
- Views: 8250
Re: Camera view after player death
Yes, self is level.player in this case because of
I've tried setcandamage but it's only for script_model, script_origin or script_brushmodel entities.
Code: Select all
level.player thread fastDeath();
- November 13th, 2012, 10:19 pm
- Forum: CoD2 Mapping Help
- Topic: Camera view after player death
- Replies: 14
- Views: 8250
Camera view after player death
Hi, I'm doing a mod which would add a custom difficulty to SP missions. One of the first things I'm doing is killing player when he gets the first shot but it doesn't work at all, when player dies, camera always look at a point instead of enemy so most of the times you have no idea of who have kille...