mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed controller, blending, and reduced view lag.
(T(+)rget suggestions)
This commit is contained in:
parent
8b81138800
commit
35fe033d53
@ -1571,22 +1571,22 @@ static cell AMX_NATIVE_CALL entity_get_byte(AMX *amx, cell *params) {
|
|||||||
|
|
||||||
switch(iValueSet) {
|
switch(iValueSet) {
|
||||||
case controller1:
|
case controller1:
|
||||||
iRetValue = pEntity->v.controller[1];
|
iRetValue = pEntity->v.controller[0];
|
||||||
break;
|
break;
|
||||||
case controller2:
|
case controller2:
|
||||||
iRetValue = pEntity->v.controller[2];
|
iRetValue = pEntity->v.controller[1];
|
||||||
break;
|
break;
|
||||||
case controller3:
|
case controller3:
|
||||||
iRetValue = pEntity->v.controller[3];
|
iRetValue = pEntity->v.controller[2];
|
||||||
break;
|
break;
|
||||||
case controller4:
|
case controller4:
|
||||||
iRetValue = pEntity->v.controller[4];
|
iRetValue = pEntity->v.controller[3];
|
||||||
break;
|
break;
|
||||||
case blending1:
|
case blending1:
|
||||||
iRetValue = pEntity->v.blending[1];
|
iRetValue = pEntity->v.blending[0];
|
||||||
break;
|
break;
|
||||||
case blending2:
|
case blending2:
|
||||||
iRetValue = pEntity->v.blending[2];
|
iRetValue = pEntity->v.blending[1];
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
@ -2335,8 +2335,8 @@ static cell AMX_NATIVE_CALL set_view(AMX *amx, cell *params) {
|
|||||||
SET_MODEL(pNewCamera, "models/rpgrocket.mdl");
|
SET_MODEL(pNewCamera, "models/rpgrocket.mdl");
|
||||||
SET_SIZE(pNewCamera, Vector(0, 0, 0), Vector(0, 0, 0));
|
SET_SIZE(pNewCamera, Vector(0, 0, 0), Vector(0, 0, 0));
|
||||||
|
|
||||||
pNewCamera->v.movetype = MOVETYPE_FLY;
|
pNewCamera->v.movetype = MOVETYPE_NOCLIP;
|
||||||
pNewCamera->v.solid = SOLID_BBOX;
|
pNewCamera->v.solid = SOLID_NOT;
|
||||||
pNewCamera->v.takedamage = DAMAGE_NO;
|
pNewCamera->v.takedamage = DAMAGE_NO;
|
||||||
pNewCamera->v.gravity = 0;
|
pNewCamera->v.gravity = 0;
|
||||||
pNewCamera->v.owner = pPlayer;
|
pNewCamera->v.owner = pPlayer;
|
||||||
@ -2364,8 +2364,8 @@ static cell AMX_NATIVE_CALL set_view(AMX *amx, cell *params) {
|
|||||||
SET_MODEL(pNewCamera, "models/rpgrocket.mdl");
|
SET_MODEL(pNewCamera, "models/rpgrocket.mdl");
|
||||||
SET_SIZE(pNewCamera, Vector(0, 0, 0), Vector(0, 0, 0));
|
SET_SIZE(pNewCamera, Vector(0, 0, 0), Vector(0, 0, 0));
|
||||||
|
|
||||||
pNewCamera->v.movetype = MOVETYPE_FLY;
|
pNewCamera->v.movetype = MOVETYPE_NOCLIP;
|
||||||
pNewCamera->v.solid = SOLID_BBOX;
|
pNewCamera->v.solid = SOLID_NOT;
|
||||||
pNewCamera->v.takedamage = DAMAGE_NO;
|
pNewCamera->v.takedamage = DAMAGE_NO;
|
||||||
pNewCamera->v.gravity = 0;
|
pNewCamera->v.gravity = 0;
|
||||||
pNewCamera->v.owner = pPlayer;
|
pNewCamera->v.owner = pPlayer;
|
||||||
@ -2393,8 +2393,8 @@ static cell AMX_NATIVE_CALL set_view(AMX *amx, cell *params) {
|
|||||||
SET_MODEL(pNewCamera, "models/rpgrocket.mdl");
|
SET_MODEL(pNewCamera, "models/rpgrocket.mdl");
|
||||||
SET_SIZE(pNewCamera, Vector(0, 0, 0), Vector(0, 0, 0));
|
SET_SIZE(pNewCamera, Vector(0, 0, 0), Vector(0, 0, 0));
|
||||||
|
|
||||||
pNewCamera->v.movetype = MOVETYPE_FLY;
|
pNewCamera->v.movetype = MOVETYPE_NOCLIP;
|
||||||
pNewCamera->v.solid = SOLID_BBOX;
|
pNewCamera->v.solid = SOLID_NOT;
|
||||||
pNewCamera->v.takedamage = DAMAGE_NO;
|
pNewCamera->v.takedamage = DAMAGE_NO;
|
||||||
pNewCamera->v.gravity = 0;
|
pNewCamera->v.gravity = 0;
|
||||||
pNewCamera->v.owner = pPlayer;
|
pNewCamera->v.owner = pPlayer;
|
||||||
@ -3047,6 +3047,7 @@ void WriteEntity(int iValue) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ServerActivate( edict_t *pEdictList, int edictCount, int clientMax ){
|
void ServerActivate( edict_t *pEdictList, int edictCount, int clientMax ){
|
||||||
|
PRECACHE_MODEL("models/rpgrocket.mdl");
|
||||||
AMX* amx;
|
AMX* amx;
|
||||||
void* code;
|
void* code;
|
||||||
const char* filename;
|
const char* filename;
|
||||||
|
Loading…
Reference in New Issue
Block a user