-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop Crate on Death #1371
base: develop
Are you sure you want to change the base?
Drop Crate on Death #1371
Conversation
- Ìf `DropCrate` is declared then the specified crate will be spawned when the object is destroyed. In `rulesmd.ini`: ```ini [SOMETECHNO] ; TechnoType DropCrate= ; Powerup crate type enum (money|unit|healbase|cloak|explosion|napalm|squad|reveal|armor|speed|firepower|icbm|invulnerability|veteran|ionstorm|gas|tiberium|pod) ``` Also, a new map action (see the documentation) allows the overwrite of this behaviour (or set as new value!) if the trigger is attached to technos.
Nightly build for this pull request:
This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't collecting this new crate spawn a new one according to random crate logic?
![image](_static/images/dropcrate-01.gif) | ||
*Drop crates on infantry and vehicles example in [C&C: Reloaded](https://www.moddb.com/mods/cncreloaded)* | ||
|
||
- Ìf `DropCrate` is declared then the specified crate will be spawned when the object is destroyed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Ìf `DropCrate` is declared then the specified crate will be spawned when the object is destroyed. | |
- If `DropCrate` is declared then the specified crate will be spawned when the object is destroyed. |
int currentRange = 0; | ||
bool placed = false; | ||
|
||
do | ||
{ | ||
int x = -currentRange; | ||
int y = -currentRange; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
int currentRange = 0; | |
bool placed = false; | |
do | |
{ | |
int x = -currentRange; | |
int y = -currentRange; | |
short currentRange = 0; | |
bool placed = false; | |
do | |
{ | |
short x = -currentRange; | |
short y = -currentRange; |
This should fix the warnings about implicit casting.
DropCrate
is declared then the specified crate will be spawned when the object is destroyed.In
rulesmd.ini
:Also, a new map action (see the documentation) allows the overwrite of this behaviour (disbale, enable or set a new crate) if the trigger is attached to technos.
Tested in online games so this doesn't desync.