Jump to content

SharkAttack — Map-wide Shark Invasion Event 1.0.0

   (0 reviews)

1 Screenshot

  • 57
  • 8
  • 9.16 kB
  • Update details
    v1.0.0
    Released
    Download size9.16 kB
    Total versions1
    Freshness Updated today

Mostly AI-Generated

This file appears to be mostly AI-generated. Support, maintenance, and future updates may not be guaranteed, especially if the author is unable to maintain the code without AI assistance.

About SharkAttack — Map-wide Shark Invasion Event

SharkAttack

A pack of sharks floods the waters around your players. Swimming stops being a
shortcut and the coastline stops being safe — until the event ends and every
single shark is removed.

## Features

- Spawns a configurable number of sharks, preferring water near online players
  so the event happens where someone can actually see it
- Falls back to any deep water on the map, so it still fires on an empty server
- **Every spawned shark is tracked and despawned** when the event stops, when
  the plugin unloads, or when the server restarts — no leftovers, ever
- Bounded spawn attempts: on a map with little water the event gives up and says
  so, instead of hanging
- English and French language files included
- Hooks for other plugins

## Commands

| Command | Description | Permission |
|---|---|---|
| `/sharks` or `/sharks start` | Start the event | `sharkattack.admin` |
| `/sharks stop` | Stop it and despawn everything | `sharkattack.admin` |
| `sharks` / `sharks stop` | Same, from the server console | — |

Server admins (auth level 2) can use the commands without the permission.

## Configuration

- Shark prefab
- Number of sharks to spawn
- Spawn radius around players
- Minimum water depth required to spawn
- Chat prefix

## API

```csharp
StartSharkAttack()      // start the event
StopSharkAttack()       // stop it and despawn every shark
IsSharkAttackActive()   // bool
```

## Hooks

```csharp
void OnSharkAttackStarted(int spawned)
void OnSharkAttackEnded(int despawned)
```


User Feedback

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.9m
Total downloads
Customers
11.9k
Customers served
Files Sold
169.4k
Total sales
Payments
3.7m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.