Raised This Month: $ Target: $400
 0% 

can I do this?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Triver
Junior Member
Join Date: Dec 2010
Old 04-09-2011 , 10:15   can I do this?
Reply With Quote #1

Sry if the title doesnt say anything about the content of the thread but it was the best thing that crossed my mind

First of all let me say that it is not my plugin/mod that I am discussing here, Im just trying to improve it since the original developer stopped working on it and published the .sma's
I am also not asking for complete code solutions, only for ideas of how to solve the problems (but if you want you can post a whole solution )

The mod adds weapons to the game and as far as I have read out of the code it works like this:
A new weapon is generally a copied original one whose models/sounds/animations are linked to new ones. There are also some changes like shooting speed, amount of ammo, reloading speed etc.


1st problem:
The "new" weapons still have the original hud sprites (I mean the pictures of the weapons when you scroll through your inventory with your mouse).
So after thinking about it, I just need to tell the game that it should use alternative sprite .txt's (the sprites of a weapon are stored in sprites/weapon_xxx.txt) instead of the original ones (for example it should read the sprite information out of the file "sprites/mod/weapon_new.txt" and not "sprites/weapon_ak47.txt).
Is it possible to do this and if yes how?

2nd problem:
When you zoom in with a sniper weapon of the game, the v_model is usually invisible. But if you tell the game to zoom in with a different weapon (in this case a new added one) by using the function
Code:
cs_set_user_zoom(id, CS_SET_FIRST_ZOOM, 0)
the v_model is still visible!
I also experienced this in other plugins like the improved paintball plugin (screenshot example) so I assume it has something to do with the function...
So is it possible to blank the model out when zooming in and if yes how?

3rd problem:
You can also see in the above screenshot example (its the paintball plugin but I have the same problem in the plugin I am modifying) that it only has the scope sprite and no crosshair sprite. So there is an empty space in the middle of the screen where you normally would have a crosshair.
I believe CS_SET_FIRST_ZOOM only tells the game to go in zoom and use the scope sprite but nothing more.
However I believe I can solve this when I am able use the custom weapon_xxx.txt's...


This is it for now, maybe I will have some more questions soon, I just hope you can answer some of them

Oh and to the plugin I am modifying:
It is the weapons plugin from the Counter Strike Mod CSO:NST and before you say anything about not supporting it here because of nonsteam, illegal etc just let me say that I am aiming to port them to the official version of Counter Strike because it is a good plugin and I would like to have some new weapons in CS (I know there is already a Weapon's Mod that does this but I think the way it is done in NST is better).
Also as long as you just have a look in the code of the mod and as long as we just discuss it, there should be nothing illegal with it or?

If you need the code of how it is done, the necessary .sma's can be downloaded here (if you need some specific code sections I can try to locate them and post here)
Triver is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode