Advertisement
DManstrator

Überbrückung

Oct 27th, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. /*-- Alt --*/
  2.  
  3. protected func Hit()
  4. {
  5. iTurbo2 += 5;
  6. Message("Turbo-Energie: %d",this,iTurbo2);
  7.  
  8. //Explosion
  9. if(iTurbo2 == 100)
  10. {
  11. ScheduleCall(this,"Timebomb",80,0);
  12. }
  13. return 1;
  14. }
  15.  
  16.  
  17.  
  18. /*-- Neu --*/
  19.  
  20. protected func Hit()
  21. {
  22. iTurbo2 += 5;
  23. if !(iTurbo2 <= 100)
  24. {
  25. Message("Turbo-Energie: %d",this,iTurbo2);
  26. }
  27.  
  28. //Explosion
  29. if(iTurbo2 == 100)
  30. {
  31. ScheduleCall(this,"Timebomb",80,0);
  32. }
  33. return 1;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement