Bump zscript ver to 4.14.1, plus a whole lot of stuff.
- Try to get rid of all implicit casts from string to name, color or class. - Use FindClass where needed. - Used a map in a case where a dictionary was unneeded. - Use new bounce flags where needed. - Replace Legacy of Rust weapons/ammo.
This commit is contained in:
parent
ceae806b68
commit
80db58b0d0
128 changed files with 3074 additions and 3088 deletions
|
|
@ -16,11 +16,11 @@ extend Class SWWMHandler
|
|||
// only Demolitionist can play voice lines
|
||||
if ( !(players[consoleplayer].mo is 'Demolitionist') )
|
||||
return 0;
|
||||
let hnd = SWWMHandler(EventHandler.Find("SWWMHandler"));
|
||||
let hnd = SWWMHandler(EventHandler.Find('SWWMHandler'));
|
||||
if ( !hnd ) return 0;
|
||||
String voicetype = CVar.FindCVar('swwm_voicetype').GetString();
|
||||
// suppress non-rage comments when ragekit is active, only screaming allowed
|
||||
if ( players[consoleplayer].mo.FindInventory("RagekitPower") && (type != "ragekit") ) return 0;
|
||||
if ( players[consoleplayer].mo.FindInventory('RagekitPower') && (type != "ragekit") ) return 0;
|
||||
// suppress beep-boop lines if voice channel already in use
|
||||
if ( ((type == "buttonpush") || (type == "mrtouch") || (type == "mrflick"))
|
||||
&& players[consoleplayer].mo.IsActorPlayingSound(CHAN_DEMOVOICE)
|
||||
|
|
@ -92,7 +92,7 @@ extend Class SWWMHandler
|
|||
{
|
||||
// ez
|
||||
whichline = Random[DemoLines](1,countem);
|
||||
let lst = new("OnelinerHistory");
|
||||
let lst = new('OnelinerHistory');
|
||||
lst.type = type;
|
||||
lst.lines.Push(whichline);
|
||||
hnd.gdat.lastlines.Push(lst);
|
||||
|
|
@ -114,7 +114,7 @@ extend Class SWWMHandler
|
|||
|
||||
static void CancelOneliner( String type )
|
||||
{
|
||||
let hnd = SWWMHandler(EventHandler.Find("SWWMHandler"));
|
||||
let hnd = SWWMHandler(EventHandler.Find('SWWMHandler'));
|
||||
if ( !hnd ) return;
|
||||
if ( (hnd.onelinertype != type) || (hnd.onelinertic < gametic) ) return;
|
||||
hnd.onelinertic = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue