View Single Post
Author Message
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 05-02-2016 , 16:04   [CS:GO/ZP] ExtraItem: PlasmaGun ver 3.1
Reply With Quote #1

Quote:
Version: 3.1
Author: gubka
Description:
Add new weapon to human

Version: 3.1
Fix with buying item
(Bug model) This model can be invisible on some clients, problem in the model
Crash fix (CLagCompensationManager::StartLagCompensatio n with NULL CUserCmd)

Bugs:
  1. Model little bit bugged after first shoot, problem in the model
  2. Addon calculate end postion of the beam not very accurately, because
Quote:
Originally Posted by kadet.89 View Post
Well, I suppose it's not possible. Bullet impact sprite - is a client side thing, you don't see it the same way as the server does, because of the ping-time shift. The result, the server gives to you is correct, and the sprite position is incorrect because of the prediction. The only way to minimize the difference - is to try to recalculate the prediction shift. I think the shift should be close to 'your speed'*'your ping', but I may be wrong. You should also take into account the spread of the bullets hit and recoil, it depends on the speed and the type of the weapon.
Perhaps this article will help you https://developer.valvesoftware.com/wiki/Prediction


Settings:
Quote:
#define EXTRA_ITEM_NAME "PlasmaGun"
#define EXTRA_ITEM_COST 5
#define EXTRA_ITEM_LEVEL 0
#define EXTRA_ITEM_ONLINE 0
#define EXTRA_ITEM_LIMIT 0

// Weapon
#define WEAPON_NAME "weapon_plasma"
#define WEAPON_REFERANCE "weapon_scar20"

// Models
#define MODEL_WORLD "models/weapons/plasma/w_snip_plasma.mdl"
#define MODEL_VIEW "models/weapons/plasma/v_snip_plasma.mdl"
#define MODEL_BEAM "materials/sprites/laserbeam.vmt"

// Sounds
#define SOUND_FIRE "weapons/RequestsStudio/UT3/AvrilFire.mp3"
#define SOUND_DEPLOY "weapons/RequestsStudio/UT3/AvrilDeploy.mp3"

// Beam
#define BEAM_LIFE 0.105
#define BEAM_COLOR {100, 50, 253, 255}

// Damage
#define WEAPON_MULTIPLIER_DAMAGE 1.23
Download:
Dead link removed, - use the search function to find an alternative
__________________

Last edited by DarkDeviL; 07-19-2020 at 20:12. Reason: Dead link removed
gubka is offline
Send a message via ICQ to gubka