Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Knight coin
- void onInit( CBlob@ this )
- {
- this.getCurrentScript().tickFrequency = 4;
- }
- void onTick( CBlob@ this )
- {
- CPlayer@ player = this.getPlayer();
- if ((player is null) || (!this.hasTag("bombed"))) return;
- Vec2f velocity = this.getOldVelocity();
- f32 speed = Maths::Abs(velocity.Length());
- if (-velocity.y < 3.0f)
- {
- this.Untag("bombed");
- print("untaggedbombed");
- return;
- }
- if (getNet().isServer())
- {
- player.server_setCoins(player.getCoins() + 1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement