The player is too large, man :S
Maybe could be metter to give it a smaller radius value.
Project Savior - FreeDoom/HACX TC
- EinhanderZwei
- Posts: 17
- Joined: Tue Jan 10, 2012 2:43 pm
- Location: Ukraine
Re: Project Savior - FreeDoom/HACX TC
Alrighty them based on the numerous feedback on the broken perspective, I've decided to play with it a bit. So, I've implemented http://zdoom.org/wiki/Cleaned-up_third_person_camera successfully (after upgrading ACS compiler for the Doom Builder) and modified it slightly - scripts 1 and 4 were duplicated with ENTER and DEATH parameters removed, and I've tried binding them to mouse2 in KEYCONF. Here's how it looks like (the script 1 duplicate is 09, script 4 is 08):
And now, when clicking mouse2, an error message appears: 'puke (script) [arg1] [arg2] [arg3]'
What am I doing wrong?
UPD: I've figured out what was wrong - I was using KEYCONF instead of a primitive ACS script.
Now everything works fine enough - the camera is third-person by default, and on right mouseclick (or whatever is bound to BT_ALTATTACK) it switches to first person, and the player cannot move (kinda like Resident Evil: Dead Aim meets Resident Evil 4-5). Now, the new problem has popped up: how can I prohibit the player from shooting while in 3rd person or even better, make the BT_ATTACK key execute BT_USE?
Code: Select all
alias +re "puke 08"
alias -re "puke 09"
bind mouse2 +reWhat am I doing wrong?
UPD: I've figured out what was wrong - I was using KEYCONF instead of a primitive ACS script.
- TerminusEst13
- Posts: 1625
- Joined: Mon Nov 09, 2009 3:08 pm
- Contact:
Re: Project Savior - FreeDoom/HACX TC
Seems like a simple inventory check would fix that. When swapping to first person, A_giveinventory("CanShoot",1). Then, when each of the weapons fire, have them check to see if CanShoot is actually in the player's inventory. If not, well, they don't do anything. If so, they shoot.
- EinhanderZwei
- Posts: 17
- Joined: Tue Jan 10, 2012 2:43 pm
- Location: Ukraine
Re: Project Savior - FreeDoom/HACX TC
Sounds good, but how can I let DECORATE know that currently, first person mode is enabled? I'm an idiot, inventory can be given via ACS. 