Changeset 72:4c8944b21814
- Timestamp:
- 11/22/07 01:40:00 (3 years ago)
- Author:
- mdoison
- Branch:
- madcat
- convert_revision:
- svn:7c786126-522e-0410-a822-d6d8feae56ca/branches/madcat@94
- Message:
-
- Apply ff_cvar.patch (tjw 1.2)
- Apply builder_prevent_explosion.patch (tjw 1.2)
- Remove 008.pierref.deco_exploding_sd.patch (deprecated by builder_prevent_explosion.patch)
- Location:
- src/game
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r71
|
r72
|
|
| 1875 | 1875 | ( ent->client->ps.weapon <= WP_HBUILD ) ) ) |
| 1876 | 1876 | { |
| | 1877 | // Always let the builder prevent the explosion |
| | 1878 | if( traceEnt->health <= 0 ) |
| | 1879 | { |
| | 1880 | G_FreeEntity( traceEnt ); |
| | 1881 | return; |
| | 1882 | } |
| | 1883 | |
| 1877 | 1884 | // Cancel deconstruction |
| 1878 | 1885 | if( g_markDeconstruct.integer && traceEnt->deconstruct ) |
| … |
… |
|
| 1954 | 1961 | } |
| 1955 | 1962 | } |
| 1956 | | else |
| 1957 | | { |
| 1958 | | // We *can* deconstrute building on fire :) |
| 1959 | | G_LogPrintf( "Decon: %i %i 0: %s ^3deconstructed^7 %s\n", |
| 1960 | | ent->client->ps.clientNum, |
| 1961 | | traceEnt->s.modelindex, |
| 1962 | | ent->client->pers.netname, |
| 1963 | | BG_FindNameForBuildable( traceEnt->s.modelindex ) ); |
| 1964 | | |
| 1965 | | if( !deconstruct ) |
| 1966 | | G_Damage( traceEnt, ent, ent, forward, tr.endpos, 10000, 0, MOD_SUICIDE ); |
| 1967 | | else |
| 1968 | | G_FreeEntity( traceEnt ); |
| 1969 | | |
| 1970 | | // cheat or fast build -> no build timer |
| 1971 | | if( !g_cheats.integer && !g_fastBuild.integer ) |
| 1972 | | ent->client->ps.stats[ STAT_MISC ] += |
| 1973 | | BG_FindBuildDelayForWeapon( ent->s.weapon ) >> 2; |
| 1974 | | } |
| 1975 | 1963 | } |
| 1976 | 1964 | } |
-
|
r71
|
r72
|
|
| 191 | 191 | { &g_synchronousClients, "g_synchronousClients", "0", CVAR_SYSTEMINFO, 0, qfalse }, |
| 192 | 192 | |
| 193 | | { &g_friendlyFire, "g_friendlyFire", "1", CVAR_ARCHIVE, 0, qtrue }, |
| | 193 | { &g_friendlyFire, "g_friendlyFire", "1", CVAR_SERVERINFO | CVAR_ARCHIVE, 0, qtrue }, |
| 194 | 194 | { &g_friendlyFireAliens, "g_friendlyFireAliens", "1", CVAR_ARCHIVE, 0, qtrue }, |
| 195 | 195 | { &g_friendlyFireHumans, "g_friendlyFireHumans", "1", CVAR_ARCHIVE, 0, qtrue }, |