Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. hSentryFlamer <- inflictor.GetOwner();
  2. if ( inflictor != null && inflictor.GetClassname() == "asw_sentry_top_machinegun"
  3. || inflictor != null && hSentryFlamer.GetClassname() == "asw_sentry_top_flamer" ){
  4. if ( victim != null && victim.GetClassname() != "asw_marine"){
  5. local radius = 120;
  6. foreach ( classname in AlienArr ){
  7. local nearTarget = null;
  8. while((nearTarget = Entities.FindByClassnameWithin(nearTarget, classname, victim.GetOrigin(), radius)) != null)
  9. nearTarget.TakeDamage( 15, 4098, null );
  10. }
  11. local nearTarget = null;
  12. while((nearTarget = Entities.FindByClassnameWithin(nearTarget, "asw_buzzer", victim.GetOrigin(), radius)) != null){
  13. if (nearTarget == victim)
  14. continue
  15. else nearTarget.TakeDamage( 15, 4098, null );
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement