| Commit | Date | |
|---|---|---|
|
[r2751]
by
sumolx
openbor_strleft() should not be mallocing such a small pointer. This will cause memory fragmentation, use arrays instead since this is a small variable on the stack. |
2010-05-03 13:40:42 | Tree |
|
[r2750]
by
damon_caskey
Rolled back string additions from previous two check ins for custom string functions based on VB string manipulation. With this update the following are available: void s = strinfirst({string}, {find}) - Returns {string} starting from the first instance of {find}. void s = strleft({string}, {length}) - Returns {length} number of characters from the left side of {string}. int i = strlength({string}) - Returns number of characters in {string} void s = strright({string}, {length}) - Returns {length} number of characters from the right side of {string}. |
2010-05-02 18:37:07 | Tree |
|
[r2749]
by
damon_caskey
Added validation to strstr (see version 2748), returns -1 if no match found. |
2010-04-30 20:14:32 | Tree |
|
[r2748]
by
damon_caskey
Adding string function support (http://www.cplusplus.com/reference/clibrary/cstring/). Supported as of this addition: strlen |
2010-04-30 20:03:34 | Tree |
|
[r2747]
by
damon_caskey
getentityproperty({ent}, "path") - Returns path to folder housing the entity's text file. |
2010-04-29 22:56:46 | Tree |
|
[r2746]
by
damon_caskey
New entity header: Stats {index} {value}. Allows establishment of model/entity values for script use without need of spawn and cleanup script overhead. Similar to health, values exist at the entity and model level. {index} - Currently 1-20. getentityproperty({ent}, "stats", {type}, {index}): Returns the entity's stats value. {type} - 0 = Modeldata. 1 = Entity. changeentityproperty({ent}, "stats", {type}, {index}, {value}): Modify the entity's stats value. {type} - 0 = Modeldata. 1 = Entity. Will look at setting up for dynamic index limit in the future. |
2010-04-29 17:15:09 | Tree |
|
[r2745]
by
damon_caskey
komap_apply removed from entity properties. Komap property now uses index based sub properties. getentityproperty(vEnt, "komap", {index}) {index} 0 = Komap. |
2010-04-28 16:56:12 | Tree |
|
[r2744]
by
damon_caskey
Rolled back level aggression setting; sometimes causes AI not to attack at all. Icon now available to getentityproperty, returns the icon's sprite, or -1 if icon is invalid: getentityproperty(vEnt, "icon", {index}). {index} = icon type. 0 = Icon |
2010-04-27 20:53:32 | Tree |
| 2010-04-22 19:55:36 | Tree | |
| 2010-04-22 18:35:36 | Tree |