]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/target/voicescript.qc
Merge branch 'terencehill/menu_fixes' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / target / voicescript.qc
index c173d80eefe6867261105b427a509ea850ba2c51..e8433177094dfec0337a9e101f878bface1873c4 100644 (file)
@@ -9,13 +9,13 @@ void target_voicescript_clear(entity pl)
        pl.voicescript = world;
 }
 
-void target_voicescript_use()
+void target_voicescript_use(entity this, entity actor, entity trigger)
 {
-       if(activator.voicescript != self)
+       if(actor.voicescript != this)
        {
-               activator.voicescript = self;
-               activator.voicescript_index = 0;
-               activator.voicescript_nextthink = time + self.delay;
+               actor.voicescript = this;
+               actor.voicescript_index = 0;
+               actor.voicescript_nextthink = time + this.delay;
        }
 }
 
@@ -73,7 +73,7 @@ void target_voicescript_next(entity pl)
        }
 }
 
-void spawnfunc_target_voicescript()
+spawnfunc(target_voicescript)
 {
        // netname: directory of the sound files
        // message: list of "sound file" duration "sound file" duration, a *, and again a list