forked from DRRP-Team/DRRP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathZSCRIPT.zs
59 lines (47 loc) · 1.62 KB
/
ZSCRIPT.zs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
* Copyright (c) 2017-2019 DRRP-Team
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
version "2.5"
#include "zscript/weapons.zs"
#include "zscript/doorcode.zs"
#include "zscript/conversation.zs"
#include "zscript/shaders.zs"
#include "zscript/flashlight.zs"
#include "zscript/hud.zs"
#include "zscript/infobar.zs"
#include "zscript/notebook.zs"
#include "zscript/system.zs"
#include "zscript/monsters.zs"
class DRRPFire_zspatch : Actor {
override void Tick() {
for ( int i = 0; i < MAXPLAYERS; i++ ) {
if ( PlayerInGame[ i ] ) {
if ( Distance3D( players[ i ].mo ) < 32 ) {
Players[ i ].mo.DamageMobj( self, self, 1, 'DRRPFireExtDmg' );
} // of if ( Distance3D( players[ i ].mo )
} // of if ( PlayerInGame[ i ] )
} // of for ( uint8 i = 0; i < MAXPLAYERS; i++ )
Super.Tick();
} // of override void Tick()
override bool CanCollideWith( Actor other, bool passive ) {
String cn = other.getClassName();
if ( cn ~== "DoomRPGPlayer"
|| cn ~== "Phantom"
|| cn ~== "DRRPLostSoul"
|| cn ~== "Nightmare"
|| cn ~== "Beholder"
|| cn ~== "Rahovart"
|| cn ~== "DRRPPainElemental"
|| cn ~== "Infernis"
|| cn ~== "DRRPArchVile"
|| cn ~== "Apollyon"
// || cn == "FireExtPuff"
|| ( ( other.bMISSILE == true ) && ( cn != "FireExtPuff") ) ) {
return false;
}
return true;
}
}