Creating Weapons
srs bsnss wrote:
It's completely possible to make something in the place of the portal gun - I've seen CamBen make a cat instead of a portal gun, and there's Lamarr's underground style gun from Repercussions. I'm not sure how to model myself, but that shows that it's quite possible. In terms of firing something other than portals, I'm not sure. You could "fake" a weapon by using entities, but once again, I don't know.
Okay, thank you for at least confirming my hopes that it's possible
I just need to find out if you can import 3d models cuz then I could Blender it or something...
http://forums.thinking.withportals.com/mapping-help/solved-importing-new-models-t9178.html?hilit=importing%203d%20models
If anyone knows how to set a model to a weapon i would really like to know.
boctroy wrote:
If you use the compiler in the portal2 bin file then you can have it make the .qc file fore you. I seem to have troubles with that compiler so what i do is take that .qc file and use it in the "crowbar" compiler that i downloaded.If anyone knows how to set a model to a weapon i would really like to know.
You have to modify the weapon_portalgun.txt file in the portal 2/portal2/scripts/ folder
Also, is there a way to dynamiclly change that file. so i can change weapons mid game?
Never mind i figured it out
Sorry to bother you again. I really like changing the weapon_portalgun.txt file to change my weapon, however i was wondering if there is a way to dynamically change this in mid-game. I want to have about 5 different weapons in the level so if anyone knows how to get this done i would be grateful.
I don't mind scripting so if you know a way to do it that way its okay.
TeamSpen210 wrote:
You might be able to fake it by parenting a weapon model to the player, or using a logic_measure_movement (can't remember which works better).
This is what i have already done in the past, and i do agree it is a sure way to do it. I would just be alot smoother and cooler (i think) if i could add actual weapons instead of parenting models.
Please if anyone has anyother ideas don't be afraid to post ![]()