|
@@ -648,11 +648,11 @@ module.exports = function FpsUtils(dispatch) {
|
|
|
return false
|
|
return false
|
|
|
})
|
|
})
|
|
|
dispatch.hook('S_FEARMOVE_STAGE', 1,(event) => {
|
|
dispatch.hook('S_FEARMOVE_STAGE', 1,(event) => {
|
|
|
- if( state > 2) return false // Prevent crashing on other players getting feared because this is a good game with good coding
|
|
|
|
|
|
|
+ if(!event.target.equals(pcid) && (state > 2 || flags.state > 2)) return false // Prevent crashing on other players getting feared because this is a good game with good coding
|
|
|
|
|
|
|
|
})
|
|
})
|
|
|
dispatch.hook('S_FEARMOVE_END', 1,(event) => {
|
|
dispatch.hook('S_FEARMOVE_END', 1,(event) => {
|
|
|
- if( state > 2) return false // should really add users to hiddenIndividual instead of this
|
|
|
|
|
|
|
+ if(!event.target.equals(pcid) && (state > 2 || flags.state > 2)) return false // should really add users to hiddenIndividual instead of this
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
|